Skip to content

Context.sess should be public ? #9

@goten4

Description

@goten4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions