-
Notifications
You must be signed in to change notification settings - Fork 23
Context.sess should be public ? #9
Copy link
Copy link
Open
Description
Hi,
I'm implementing an SMPP server, and my server is waiting for ESME connections.
So I wrote the following handler :
sessConf := smpp.SessionConf{
SystemID: systemID,
Handler: smpp.HandlerFunc(func(ctx *smpp.Context) {
switch ctx.CommandID() {
case pdu.BindTransceiverID:
// store ctx.Sess to reuse it for sending Delivery Receipt and MO
case pdu.SubmitSmID:
// manage MT
}
}),
}In the case of BindTransceiverID PDU, I would like to be able to store context session, in order to reuse it later (when sending back Delivery Receipt for example). To do that, I should have a way to access to the session of the context. I can create a Pull Request to make it public if you'd like.
Maybe I missed something, but I didn't find a way to send my DeliverSM PDU.
Thanks,
Emmanuel
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels