Comments (6)
What is values on submit_sm_resp you need to use?
it only has:
1. command_length (dynamically change based on the PDU size)
2. command_id (it always submit_sm_resp)
3. command_status (it always 0, non zero will inform by throwing
NegativeResponseException and you can
get the command status from there)
4. sequence_number (it's protocol level, you don't need this because you don't
know the value when you send
submit_sm. sequence_number used to match the request-response)
5. message_id (you always have this returned by the method if the message
submission succeed)
Original comment by [email protected]
on 26 Aug 2009 at 3:19
- Changed state: Accepted
from jsmpp.
I'm using the command_length parameter for calculating if we'll be needing a
bandwidth upgrade or not.
Original comment by [email protected]
on 26 Aug 2009 at 3:33
from jsmpp.
You do that on application level?
Not on network level or something like network monitoring tools?
Original comment by [email protected]
on 26 Aug 2009 at 4:08
from jsmpp.
How if I create some listener that will pass the notify if there is smpp
activity by passing the PDU dump. So you
can debug all the sent and received PDU and you also can get the length of the
PDU (equal to command_length)
interface ActivityListener {
// we can write the pdu dump and also know the length pdu.length
void onActivity(byte[] pdu, Session source);
}
Original comment by [email protected]
on 26 Aug 2009 at 5:47
from jsmpp.
Listener might be OK for now.
In the next major release, probably we can split the encoding / protocol part
from
the network (stream, socket) part.
TrafficHandler trafficHandler = new TrafficHandler(socketObjectWithStreams);
SubmitSmPDU pdu = new SubmitSmPDU(params...);
// OR
SubmitSmPDU pdu = new PDUBuilder()
.set(someParam)
.set(SomeOtherParam)
.buildSubmitSmPDU();
trafficHandler.submit(session, pdu);
This will help us diagnose and unit-test things in isolation.
Regards,
Shantanu
Original comment by [email protected]
on 26 Aug 2009 at 6:06
from jsmpp.
Thats nice.
What do you think, next release :-P?
Original comment by [email protected]
on 26 Aug 2009 at 6:21
from jsmpp.
Related Issues (20)
- Latest download not the same as available source HOT 1
- JSMPP Developer Support HOT 1
- SMPPServerSimulator example throws NullPointerException HOT 1
- ThreadSleep and listener causing issues. HOT 2
- Sending Arabic SMS failed. (submit_sm failed) HOT 1
- Negative response 0000000d found
- Receive negative response
- Negative response 00000401 found
- How to send enquiry link request from server to client
- Sending multiple messages without waiting for submit_sm_response
- Additional TLV parameter
- losed
- How to Send Voice SMS through JSMPP?
- Read optional parameter from DeliveryReceipt
- ERROR org.jsmpp.examples.V3SSmppSimulatorServer - Failed sending delivery_receipt for message id
- Error Sending SMS
- Failed decomposing deliver_sm
- Not able to receive deliver_sm sometimes
- Getting error java.io.IOException: Receive negative bind response: Negative response 00000009 found
- Patch for /trunk/src/java/examples/org/jsmpp/examples/SimpleSubmitExample.java
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsmpp.