K2InformaticsGmbH / smpp_parser

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

Unpack error {'ESME_RINVEXPIRY',"ESME_RINVEXPIRY", "Invalid message validity period (Expiry time)"} #35

Closed walter-weinmann closed 6 years ago

walter-weinmann commented 6 years ago

Probably no support for the relative time format (see SMPP V5.0 section 4.7.23.5 Relative Time Format).

Example deliver_sm:

 {"deliver_sm",  
  "00 00 00 73 00 00 00 05 00 00 00 00 23 A5 D3 13 56 4D 4E 00 02 03 31 32 37 "  
  "2E 30 2E 30 2E 31 00 01 06 31 36 38 2E 31 32 33 2E 32 33 34 2E 33 32 31 00 "  
  "20 42 02 30 38 30 31 31 35 32 31 33 34 34 31 30 30 30 52 00 30 32 30 37 00 "  
  "00 00 02 7F 3F 15 39 20 54 68 69 73 20 69 73 20 61 06 0F 00 06 00 00 00 00 "  
  "0D 00 01 04 02 0B 00 02 C7 B9 05 01 00 01 09"}
f().
D = <<"00 00 00 73 00 00 00 05 00 00 00 00 23 A5 D3 13 56 4D 4E 00 02 03 31 32 37 2E 30 2E 30 2E 31 00 01 06 31 36 38 2E 31 32 33 2E 32 33 34 2E 33 32 31 00 20 42 02 30 38 30 31 31 35 32 31 33 34 34 31 30 30 30 52 00 30 32 30 37 00 00 00 02 7F 3F 15 39 20 54 68 69 73 20 69 73 20 61 06 0F 00 06 00 00 00 00 0D 00 01 04 02 0B 00 02 C7 B9 05 01 00 01 09">>.
{ok, DStr} = smpp:decode(D).
smpp:encode(DStr).
DStr == D.
walter-weinmann commented 6 years ago

Issue in test data generation.