Question

I will be using JSMPP for implementing a Receiver Listener for SMSC, so I will implement the MessageRecieverListener and implement the method onAcceptDeliverSm but according to the SMPP specs the application should send deliver_sm_resp as a response of deliver_sm

How will this be accomplished through JSMPP, is this something that happens behind the scenes by the JSMPP ?

Was it helpful?

Solution

I'm using jsmpp in the production. The best thing of this lib is that many low level thing happen behind the scenes and deliver_sm_resp too :-)

enquery_link and enquery_link_resp happens behind the scenes too and you can also configure the timeout for this commands when you create your SMPPSession like this:

SMPPSession tmpSession = new SMPPSession();
    tmpSession.setTransactionTimer(transactionTimer);
    tmpSession.setEnquireLinkTimer(enquireLinkTimer);
    tmpSession.addSessionStateListener(new SessionStateListenerImpl());
    MessageReceiverListenerImpl mrl = new MessageReceiverListenerImpl();
    tmpSession.setMessageReceiverListener(mrl);
    tmpSession.connectAndBind(remoteIpAddress, remotePort, bindParam);

variable transactionTimer and enquireLinkTimer I'm storing in the properties file :-)

jsmpp is very cool lib and I like it :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top