sxiao3 / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Regarding ENQUIRE_LINK and ENQUIRE_LINK RESP #132

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. This is kind of an intermittent issue, happens rarely.

What is the expected output? What do you see instead?
Connection is getting lost sometimes

What version of the product are you using? On what operating system?
jsmpp-2.1.0.jar on SOLARIS10

Please provide any additional information below.
I am using a Webservice to send an sms using jsmpp.
This is how I have implemented the code to send an sms.

1. A session will be obtained by passing these parameter to this method.

API Method signature:

session.connectAndBind(host, port, bindParam)

2. As long as this session is not null, in bound state and in transmittable 
state, the same session would be used for all the requests.otherwise a new 
session would be obtain by invoking the method mentioned in 3rd step.

3. Using this session, submitShortMessage()method will be invoked to send an 
sms to a subscriber.

API Method signature:

session.submitShortMessage(msisdn, sourceAddrTon, sourceAddrNpi,

sourceAddr, destAddrTon, destAddrNpi,

destinationAddr, esmClass, protocolId,

priorityFlag, scheduleDeliveryTime,

validityPeriod, registeredDelivery,

replaceIfPresentFlag, dataCoding,

smDefaultMsgId,

shortMessage, optionalParameters);

*****

Problem is sometimes we are not able to establish the connection to the 
back-end(SMS). so we are asked to capture ENQUIRE_LINK and respond to it using 
ENQUIRE_LINK_RESP.

I need your help to understand what exactly these two parameters and how I can 
implement it in my code to solve this connection problem,

Thanks in Adavance

Ashwath

Original issue reported on code.google.com by ashwath...@gmail.com on 22 Nov 2012 at 10:57