Hi Hafez,

I have had this problem too - best solution is to get them to reissue a
password of correct length. But if you have to .. check the source file
gw/smsc/smpp_pdu.def I believe all that would be required is to change
the size definition (I'll leave it to you to test, etc). The current
settings are all as per the SMPP 3.4 specification - the provider, if
they have given you an SMPP connection should conform to the SMPP
specification.

Cheers,
Alan

e.g upping the limit to a null terminated string of length 10

cvs diff: Diffing .
Index: smpp_pdu.def
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smpp_pdu.def,v
retrieving revision 1.13
diff -u -w -b -B -r1.13 smpp_pdu.def
--- smpp_pdu.def    12 Jan 2009 16:46:51 -0000    1.13
+++ smpp_pdu.def    20 Jun 2010 21:27:50 -0000
@@ -122,7 +122,7 @@
     0x00000002,
     HEADER
     NULTERMINATED(system_id, 16)
-    NULTERMINATED(password, 9)
+    NULTERMINATED(password, 10)
     NULTERMINATED(system_type, 13)
     INTEGER(interface_version, 1)
     INTEGER(addr_ton, 1)
@@ -143,7 +143,7 @@
     0x00000001,
     HEADER
     NULTERMINATED(system_id, 16)
-    NULTERMINATED(password, 9)
+    NULTERMINATED(password, 10)
     NULTERMINATED(system_type, 13)
     INTEGER(interface_version, 1)
     INTEGER(addr_ton, 1)
@@ -164,7 +164,7 @@
     0x00000009,
     HEADER
     NULTERMINATED(system_id, 16)
-    NULTERMINATED(password, 9)
+    NULTERMINATED(password, 10)
     NULTERMINATED(system_type, 13)
     INTEGER(interface_version, 1)
     INTEGER(addr_ton, 1)
@@ -185,7 +185,7 @@
     0x0000000B,
     HEADER
     NULTERMINATED(system_id, 16)
-    NULTERMINATED(password, 9)
+    NULTERMINATED(password, 10)
 )
 
 PDU(unbind,


On 20/06/10 20:23, hafez ahmad wrote:
> Dears,
>
> I get the following error when I try to connect my SMPP connection, my
> password is 9 chars
>
> 2010-06-20 10:52:19 [4228] [38] WARNING: SMPP: PDU element <password>
> too long (length is 9, should be 8)
>
> and I know that the SMPP allows 8 chars + the null char as terminator,
> I called my provider and they need 3 working days to change the
> password :/
>
> is there any patch or anything I can do from my side to fix the problem.
>
>
> Regards,
> -- 
> Hafez A.Ahmad
> Amman-Jordan
> mobile: 962-795708728
> http://blog.hafezadnan.com

Reply via email to