Menu

#1 invalid message lenght

open
nobody
None
5
2010-08-25
2010-08-25
No

In smpp.php, function sendSMS, had to change the creation of the pdu because it was adding a null byte to the message contents.

OLD:
$pdu = pack('a1cca'.(strlen($from)+1).'cca'.(strlen($to)+1).'ccca1a1ccccca'.(strlen($message+1)),

NEW:
$pdu = pack('a1cca'.(strlen($from)+1).'cca'.(strlen($to)+1).'ccca1a1ccccca'.(strlen($message)),

Old version was throwing an exception in Selenium's SMPPSim.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB