K2InformaticsGmbH / smpp_parser

A parser for SMPP protocol PDUs
Apache License 2.0
3 stars 1 forks source link

smpp:unpack fails when wrong data, say incorrect length PDU is fed. #5

Closed kirankurup closed 6 years ago

kirankurup commented 6 years ago
> smpp:unpack("00 00 00 23 00 00 00 09 00 00 00 00 00 00 00 01 34 31 31 35 00 7A 75 6A 5F 34 31 31 35 00 00 34 00 00").
Unpack error {'ESME_RINVCMDLEN',"ESME_RINVCMDLEN","Command Length is invalid"}
** exception error: no match of right hand side value {error,9,2,1}