sxiao3 / jsmpp

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

Invalid PDU parameter!! #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1.When i listening to SMSC and it wont deliver SMS to my application.
I analyze a trace then,In that it says 
Deliver_sm,Deliver_sm -resp:"Invalid Service type"

I mention service type only in connectAndBind method.
Do i have to mention when onAcceptDeliverSm is called where message is reading.
2.Then i try to submitSm to SMSC.Then it give following error.
Binding is success with service type
org.jsmpp.PDUStringException: C-Octet String value '******' cannot more than 6. 
Actual length of string is 6.

How can i resolve this.Is this situation handle by SMSC or listening 
Application.
I'm new to developing SMPP apps.but i successfully done MO and MT part where 
with SMSC doesn't indicate service type..
Waiting for reply..ASAP.
Thanks...
UDDil

Original issue reported on code.google.com by udeshi...@gmail.com on 6 Apr 2011 at 10:43

GoogleCodeExporter commented 8 years ago
I resolve this issue.At first Service Type is defined as "ABCDE2" at SMSC.Then 
when I cannot recieve SMS's wend to SMSC and also couldn't submit SMS's to 
SMSC.AS i mentioned above error is occured.
To resolve this issues,Service Type was defined as "ABCDE".Then delivering and 
submitting SMS's is success.
Is  numeric value is not compatible with this Protocol.Can any one explain me.
Thanks

Original comment by udeshi...@gmail.com on 8 Apr 2011 at 6:24

GoogleCodeExporter commented 8 years ago
There is kind of bug in jsmpp:

  String msgId=session.submitShortMessage(bindAttributes.getSystemType(),

which calls:
  public String submitShortMessage(String serviceType,

SystemType != ServiceType

So if you configure your SystemTime to be longer then 5 chars (6 octets = 5 
chars + 0x0) then when you submit you will get validation error (in validation 
process proper enum is being used).

Original comment by hamsterr...@gmail.com on 27 Sep 2012 at 4:42

GoogleCodeExporter commented 8 years ago
Appreciate your comments....
Thanks ..

Original comment by udeshi...@gmail.com on 28 Sep 2012 at 7:24