Hello, I use opensmpp and try the submit method (Submit_SM) and it work fine. But later i discover that i must use the deliver method (Deliver_SM) in order to use the listener side of the ESME and receive the message from the SMSC.
Here is my code the bind work fine but the response from the deliver method is always null.
Please if anyone can help me or at least give me a little example whith the deliver method
PS: I use the synchronous mode.
Hello, I use opensmpp and try the submit method (Submit_SM) and it work fine. But later i discover that i must use the deliver method (Deliver_SM) in order to use the listener side of the ESME and receive the message from the SMSC. Here is my code the bind work fine but the response from the deliver method is always null. Please if anyone can help me or at least give me a little example whith the deliver method PS: I use the synchronous mode.
import org.smpp.pdu.BindRequest import org.smpp.pdu.BindResponse import org.smpp.pdu.BindTransciever import org.smpp.pdu.BindTransmitter import org.smpp.pdu.BindReceiver import org.smpp.TCPIPConnection import org.smpp.Session import org.smpp.test.SMPPTest.SMPPTestPDUEventListener import org.smpp.pdu.AddressRange import org.smpp.Data import org.smpp.pdu.UnbindResp import org.smpp.pdu.DeliverSM import org.smpp.pdu.DataSM import org.smpp.pdu.DeliverSMResp import org.smpp.pdu.DataSMResp import org.smpp.pdu.PDU import org.smpp.pdu.Request import org.smpp.pdu.Response import org.smpp.ServerPDUEvent import org.smpp.pdu.Address import org.smpp.pdu.EnquireLink import org.smpp.pdu.EnquireLinkResp
Session session = null; def bound = false boolean asynchronous = false; String bindOption = "tr"; String systemType = ""; String serviceType = ""; Address sourceAddress = new Address() Address destAddress = new Address() byte replaceIfPresentFlag = 0; String shortMessage = ""; // the message to send String scheduleDeliveryTime = ""; String validityPeriod = "" // default estimated validity default period byte esmClass = 0; byte protocolId = 0; byte priorityFlag = 0; byte registeredDelivery = 0; byte dataCoding = 0; byte smDefaultMsgId = 0; String messageId = ""; long receiveTimeout = Data.RECEIVE_BLOCKING; AddressRange addressRange = new AddressRange(); SMPPTestPDUEventListener pduListener = null;