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

Implements generic_nack on ESME side #90

Open
goten4 opened this issue May 12, 2020 · 0 comments
Open

Implements generic_nack on ESME side #90

goten4 opened this issue May 12, 2020 · 0 comments

Comments

@goten4
Copy link

goten4 commented May 12, 2020

Hello,

How could I send a generic_nack PDU to SMS-C when my ESME receive an unsupported PDU ?
Here is the handler that I provide to my Transceiver :

func handle(p pdu.Body) {
		switch p.Header().ID {
		case pdu.DeliverSMID:
			logger.Infof("Received DeliverSM PDU")
		case pdu.UnbindID:
			logger.Infof("Received Unbind PDU from SMS-C... shutting down !")
			stopGracefully()
		default:
			nack := pdu.NewGenericNACK()
			// TODO: send nack ... but how ?
			logger.Errorf("Received unknown pdu: %+v", p)
		}
	}

Any idea ?

Thanks !
Emmanuel

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