Disclaimer: These archives are mirrored from smsforum.net in 2007 before the forum got closed. Please only part of the forum is available here.
For any clarifications regarding these archives you can contact us at http://www.telecomspace.com/contact.

      TELECOMSPACE HOME PAGE         TELECOM DISCUSSION FORUM          CONTACT

+  SMS Forum Online Discussion
|-+  APIs
| |-+  General Development Issues (Moderator: SMS Forum Support)
| | |-+  TLV Length Incorrectly set while using Payload with Logica SMPP API
« previous next »
Pages: [1] Go Down Print
Author Topic: TLV Length Incorrectly set while using Payload with Logica SMPP API  (Read 149 times)
RedDevil
Newbie
*
Offline Offline

Posts: 4


« on: August 02, 2007, 14:45:32 UTC »

Hi Everyone,

I am having a issue with using Payloads, when i send a Payload , the SMSC rejects teh Submit_SM , investigating more on the SMSC tells me the TLV Length is beigng set as "FF B2" instead of "00 B2".

The TLV Type is correctly set as "04 24" ie Message Payload but the length is not correct, can any one suggest any solutions??

Thanks,
RD

Logged
parasa
Sr. Member
****
Offline Offline

Posts: 142



« Reply #1 on: August 02, 2007, 17:05:05 UTC »

Paste the hex dump of PDU.
Logged

Thanks & regards,

Parasa kiran
India
RedDevil
Newbie
*
Offline Offline

Posts: 4


« Reply #2 on: August 03, 2007, 02:37:52 UTC »

Here Is the Hex Dump

  00 13 21 c9 2d 3e 00 0e    7f 26 f8 55 08 00 45 00   
  01 0c 1c 64 40 00 80 06    00 00 0a fc 26 0d 0a fc   
  26 0b 08 91 13 89 5a 6d   fd ff 3e 01 a7 48 50 18   
  42 72 63 0e 00 00 00 00   00 e4 00 00 00 04 00 00   
  00 00 00 01 22 fc 00 01     01 33 33 33 33 00 00 00   
  32 34 38 37 31 30 31 31   33 00 40 00 00 00 00 00   
  00 f5 00 00 04 24 ff b2      06 05 04 15 81 00 00 02   
  4a 3a 5d 05 59 15 39 55   15 4c 04 00 e3 1e c2 0c   
  bc a2 ac 2a c2 ac 2a c2      ac 2a c2 cc 2a 94 98 22   
  8a b0 b3 0c 20 c3 0c 30     b3 0a a5 26 90 69 86 98   
  a2 c9 21 02 17 2b 72 c8    2c c2 cc 2c c2 ac 26 c2   
  10 21 72 77 2a 82 ac 2a    c2 ac 26 c2 2c 21 02 17   
  23 72 68 26 c2 6c 26 c2     2c 49 c4 28 8a 48 30 ab   
  0a b0 ab 0a b0 c3 0b 30   aa 12 60 8a 2a c2 cc 30   
  83 0c 30 c2 cc 2a 94 9a     41 a6 1a 62 8b 24 84 08   
  5c ad cb 20 b3 0b 30 b3    0a b0 9b 08 40 85 c9 dc   
  aa 0a b0 ab 0a b0 9b 08   b0 84 08 5c 8d c9 a0 9b   
  09 b0 9b 08 b1 27 10 a2   29 00
Logged
parasa
Sr. Member
****
Offline Offline

Posts: 142



« Reply #3 on: August 03, 2007, 06:32:21 UTC »

I have not used the API u are telling. But can you tell me how are u setting the optional parameters ?
Logged

Thanks & regards,

Parasa kiran
India
Sanketh
Jr. Member
**
Offline Offline

Posts: 5


WWW
« Reply #4 on: August 03, 2007, 06:52:04 UTC »

RedDevil ,

Are you sure the SMSC supports payload?
Some SMSCs do not support it.

Logged
abhiksarkar
Sr. Member
****
Offline Offline

Posts: 59



« Reply #5 on: August 03, 2007, 08:31:59 UTC »

Is this the Java API or the C/C++ API from Logica? It definitely looks wrong. If it is the C/C++ API, it is no longer available and  was not supported anyway. You will probably have to workaround the problem by using the short_message field (+ segmentation).

As Sanketh pointed out, it is possible that some SMSC's don't support long message_payload fields, and you are better off with segmentation.
Logged
RedDevil
Newbie
*
Offline Offline

Posts: 4


« Reply #6 on: August 04, 2007, 03:45:28 UTC »

I am using the Java SMPP API by Logica.

I am sure someone out there must have faced this problem, it seems to be a API issue as far as i can see....

Thanks for your comments.

RD
Logged
abhiksarkar
Sr. Member
****
Offline Offline

Posts: 59



« Reply #7 on: August 04, 2007, 07:11:51 UTC »

If you are (still) using the API from http://opensmpp.logica.com/, I would suggest you stop using that and start using the version from http://smstools.sourceforge.net/. This is based on the original Logica API but has several bug fixes (including one related to length of optional TLVs).

If you are already using that and having a problem (which I doubt should be the case), then we can have a look at it.

Good luck!
Abhik
Logged
RedDevil
Newbie
*
Offline Offline

Posts: 4


« Reply #8 on: August 04, 2007, 14:51:13 UTC »

Thanks Abhi, will give it a go and confirm back.

Thanks,
RD
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length