-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
To ensure no connection resets between my application & provider , my provider has adivsed application to respond with enquire_link resps in reply to their Enquire_links.
I am already forwarding Enquire_link from application to provider. Now they are asking us to implemeting vice-versa.
But, i am not receving their enquire_link. They forwarded us their Pcap file & I checked, indeed they do forward us.
this is my SMPP setting
`
session, err := gosmpp.NewSession(
gosmpp.TRXConnector(tLSDialer, creds),
gosmpp.Settings{
EnquireLink: 3 * time.Minute,
ReadTimeout: 4 * time.Minute,
OnSubmitError: func(_ pdu.PDU, err error) {
log.Println("SubmitPDU error:", err)
g.HandleConnectorEvents(err, 0, OnSubmitError)
},
OnReceivingError: func(err error) {
log.Println("Receiving PDU/Network error:", err)
g.HandleConnectorEvents(err, 0, OnReceivingError)
},
OnRebindingError: func(err error) {
log.Println("Rebinding but error:", err)
g.HandleConnectorEvents(err, 0, OnRebindingError)
},
OnPDU: g.HandlePDU(),
OnClosed: func(state gosmpp.State) {
log.Println(state, " State: ", state.String())
g.HandleConnectorEvents(nil, state, OnClosed)
},
OnRebind: func() {
log.Println("OnRebind callback invoked!!")
g.HandleConnectorEvents(nil, 0, OnRebind)
},
}, 10*time.Second)
if err != nil {
return nil, errors.Wrap(err, "go smpp new session ")
}
`
can it be due to i am using onPdu instead of onAllPDU ?
I have logged every PDU, but i do not see enquire link PDU.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels