Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving Enquire link PDU from provider in my onPDU handler. #161

Open
bluewithanas opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@bluewithanas
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant