Problem sending long SMS using NowSMS SMC | Search |
NowSMS Support Forums ⬆ WAP Technical Discussions (unsupported) ⬆ |
◄ ► |
Author | Message | |||
Raghu New member Username: Raghukiran Post Number: 1 Registered: 10-2009 |
Hello guys, I am new to this forum. I am trying to send long SMS using smpp api of logica. When sent a ringtone of 1 sms length it is working good. But when sending a long ringtone of more than 1 sms length there is problem receiving it as a single ringtone. To explain in detail. for the short ringtone i am using the following code ByteBuffer messageb = new ByteBuffer(); // UDH is needed to tell the mobile phone details // how to deliver the data in the message payload // first goes UDH length -- this UDH will have 6 bytes messageb.appendByte((byte)6); // then goes IE -- information element // IE Identifier -- 5 means that the following will // be destination and originator port numbers messageb.appendByte((byte)5); // IE Data Length -- the length of the IE // two ports per two bytes = 4 messageb.appendByte((byte)4); // the destination port -- port where ringing tone is received // on Nokia phones messageb.appendShort((short)0x1581); // originator port (unused in fact) messageb.appendShort((short)0x1581); In this case it is working fine. But, for long ringtones 3 SMS are concatenated. the code is ByteBuffer messageb = new ByteBuffer(); // UDH is needed to tell the mobile phone details // how to deliver the data in the message payload // first goes UDH length -- this UDH will have 6 bytes messageb.appendByte((byte)11); // then goes IE -- information element // IE Identifier -- 5 means that the following will // be destination and originator port numbers messageb.appendByte((byte)5); // IE Data Length -- the length of the IE // two ports per two bytes = 4 messageb.appendByte((byte)4); // the destination port -- port where ringing tone is received // on Nokia phones messageb.appendShort((short)0x1581); // originator port (unused in fact) messageb.appendShort((short)0x1581); messageb.appendByte((byte)0); messageb.appendByte((byte)3); messageb.appendByte((byte)4); messageb.appendByte((byte)totalSegments); messageb.appendByte((byte)(i+1)); I am using dcs as 0x0f5 and esmclass value as 0x40 in both cases. Please help me out with this problem. Thanks, | |||
Raghu New member Username: Raghukiran Post Number: 2 Registered: 10-2009 |
Guys, My long message is in this format 0B05040B8423F00003F9(udh bytes) + message (bytes) but in the SMSOUT.log file the sent message is in this format UDH=0B000353020205040B8423F0 (udh bytes) + message (bytes) I think order of UDH bytes have been changed. Below is the log output. 2009-10-03 15:03:29,SAR-XXX-53-2-2.req,127.0.0.1,xxxx,OK -- COM5:,SubmitUser=smppclient1;Binary=1;DCS=F5;UDH=0B000353020205040B8423F0;Data=3 43235463530373236463738373930303031433635323031383732463036303334413432354635303 63835303732364637383739303030313837323030363033333133303245333133303245333132453 3313330333030303031383732313036383530313837323230363033344134323546 | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1329 Registered: 08-2008 |
Hi Raghu, I need to see the message that you submitted in to NowSMS to be sure. However, the only time that NowSMS would change the concatenation UDH like this is if you submitted a message that was too long. For example, you could use message_payload, and submit your entire message in one submission, and NowSMS would break it up and add the concatenation headers. In this particular case, where you are segmenting the message before submission (which is an ok thing to do), I believe that your message data is too long. When submitting a binary message, the length of the UDH plus the message data cannot exceed 140 bytes. If it exceeds 140 bytes, NowSMS is going to try to segment it ... and in this case the message will end up corrupted. -- Des NowSMS Support | |||
Raghu New member Username: Raghukiran Post Number: 3 Registered: 10-2009 |
Thanks Des, Since message_payload is not handled by all the SMSC S, I want to use udh parameters. anyways i solved my problem with ur help. Once again thank u very much. | |||
Raghu New member Username: Raghukiran Post Number: 4 Registered: 10-2009 |
Guys, I finally resolved this issue. I am able to send OTA Settings, GPRS/MMS settings using NowSMS as SMSC server. http://forum.smssolutions.net/about71.html |