sungsilnom / jsmpp

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

Use jsmpp 2.1.0 set UDHI problem #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear uudashr,

Please give me a simple sample on setting UDHI!Please!

Thank you so much!

--------------------------------------------------------------------------------
---------------------
I just use jsmpp 2.1.0 test my program ,all test is run smoothly except
sending long sms.I could run the program successfully on smpp 3.4,but
smpp3.3 could not support sarMsgRefNum, sarSegmentSeqnum, sarTotalSegments.

Could I set UDHI and send long sms in another way ?Please help!

Please provide any suggest or simple sample.Thank you very much!

Original issue reported on code.google.com by kelvinch...@gmail.com on 5 Feb 2010 at 8:20

GoogleCodeExporter commented 8 years ago
Dear Kelvin,

I hope the following helps:

/**
 * byte 0 UDH length
 * byte 1 Information Element Identifier
 * byte 2 Information Element Identifier Data length
 * byte 3 SAR reference
 * byte 4 SAR number of fragments
 * byte 5 SAR sequence number
 */
byte[] shortMessage = deliverSm.getShortMessage();
int sarRefNum = shortMessage[3];
int sarMaxNum = shortMessage[4];
int sarSeqNum = shortMessage[5];

/**
 * get the short message
 */
shortMessage = Arrays.copyOfRange(shortMessage, 6, shortMessage.length);

Cheers,
Ayman

Original comment by ayman...@gmail.com on 7 Mar 2010 at 11:44

GoogleCodeExporter commented 8 years ago
jsmpp contains an example, you can look it up in 
SubmitMultipartMultilangualExample.java

Original comment by imqi...@gmail.com on 14 Jun 2013 at 6:49