1

I want to use jSMPP for implementing a Receiver Listener for SMSC. So I want to implement the MessageRecieverListener and the method onAcceptDeliverSm, but according to the SMPP specs the application should send deliver_sm_resp as a response to deliver_sm command.

How will this be accomplished through jSMPP, is this something that is performed behind the scenes by the jSMPP library?

informatik01
  • 16,038
  • 10
  • 74
  • 104
Mira
  • 291
  • 1
  • 6
  • 16
  • After some investigations I found out that JSMPP is doing this behind the scenes already – Mira May 05 '12 at 20:41

1 Answers1

4

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

The enquery_link and enquery_link_resp commands happen 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);

The values of transactionTimer and enquireLinkTimer I store in the properties file.

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

informatik01
  • 16,038
  • 10
  • 74
  • 104
Denis Rodin
  • 319
  • 1
  • 7
  • Yes true, this was long time , we already delivered the project and yes it happened behind the scenes, accept the answer for future reader :) – Mira Oct 24 '12 at 09:21