K2InformaticsGmbH / smpp_parser

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

erlang:list_to_binary failed Reason: badarg: broadcast_sm #80

Closed walter-weinmann closed 6 years ago

walter-weinmann commented 6 years ago
Command: broadcast_sm
PDU: "00 00 00 B1 00 00 01 11 00 00 00 00 00 00 00 01 00 02 08 31 32 37 2E 30 2E 30 2E 31 00 74 68 69 73 5F 63 6F 75 6C 64 5F 62 65 5F 61 5F 6D 65 73 73 61 67 65 5F 69 64 00 04 00 39 39 30 33 31 30 30 30 30 30 30 30 30 30 30 52 00 01 FF 7F 06 06 00 23 02 6D 79 5F 62 72 6F 61 64 63 61 73 74 5F 61 72 65 61 5F 69 64 65 6E 74 69 66 69 65 72 5F 30 30 30 31 30 06 01 00 03 00 00 81 06 04 00 02 00 00 06 05 00 03 0B 00 05 06 02 00 24 6D 79 5F 62 72 6F 61 64 63 61 73 74 5F 63 6F 6E 74 65 6E 74 5F 74 79 70 65 5F 69 6E 66 6F 5F 30 30 30 31 32"

00 00 00 B1 # command_length
00 00 01 11 # command_id
00 00 00 00 # command_status
00 00 00 01 # sequence_number
00 # service_type
02 # source_addr_ton
08 # source_addr_npi
31 32 37 2E 30 2E 30 2E 31 00 # source_addr
74 68 69 73 5F 63 6F 75 6C 64 5F 62 65 5F 61 5F 6D 65 73 73 61 67 65 5F 69 64 00 # message_id
04 # priority_flag
00 # schedule_delivery_time
39 39 30 33 31 30 30 30 30 30 30 30 30 30 30 52 00 # validity_period
01 # replace_if_present_flag
FF # data_coding
7F # sm_default_msg_id
TLV broadcast_area_identifier
06 06 # Parameter Tag
00 23 # Length 
02 6D 79 5F 62 72 6F 61 64 63 61 73 74 5F 61 72 65 61 5F 69 64 65 6E 74 69 66 69 65 72 5F 30 30 30 31 30 # Value
TLV broadcast_content_type
06 01 # Parameter Tag 
00 03 # Length 
00 00 81 
TLV broadcast_rep_num
06 04 # Parameter Tag 
00 02 # Length 
00 00 # Value
TLV broadcast_frequency_interval
06 05 # Parameter Tag 
00 03 # Length 
0B 00 05 # Value
Broadcast Request Optional TLV - broadcast_content_type_info
06 02 # Parameter Tag 
00 24 # Length
6D 79 5F 62 72 6F 61 64 63 61 73 74 5F 63 6F 6E 74 65 6E 74 5F 74 79 70 65 5F 69 6E 66 6F 5F 30 30 30 31 32 # Value