K2InformaticsGmbH / smpp_parser

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

maps:get failed Reason: badkey: deliver_sm_resp #86

Closed walter-weinmann closed 6 years ago

walter-weinmann commented 6 years ago
Command: deliver_sm_resp
PDU: "00 00 00 55 80 00 00 05 00 00 00 00 00 00 00 01 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 00 1D 00 1F 6D 79 5F 61 64 64 69 74 69 6F 6E 61 6C 5F 73 74 61 74 75 73 5F 69 6E 66 6F 5F 74 65 78 74 00 04 23 00 03 05 38 32"

*** User 2018-05-30 12:07:21.527 ***
smpp_test_utils:pack_unpack:60 ===> deliver_sm_resp
#{additional_status_info_text => "my_additional_status_info_text",
  command_id => 2147483653,command_length => 85,command_status => 0,
  message_id => "this_could_be_a_message_id",
  network_error_code => [#{},#{}],
  sequence_number => 1}
{
  "additional_status_info_text": "my_additional_status_info_text",
  "command_id": 2147483653,
  "command_length": 85,
  "command_status": 0,
  "message_id": "this_could_be_a_message_id",
  "network_error_code": [
    {},
    {}
  ],
  "sequence_number": 1
}

00 00 00 55 # command_length
80 00 00 05 # command_id
00 00 00 00 # command_status
00 00 00 01 # sequence_number
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
Message Delivery Response TLV - additional_status_info_text
00 1D # Parameter Tag
00 1F # Length
6D 79 5F 61 64 64 69 74 69 6F 6E 61 6C 5F 73 74 61 74 75 73 5F 69 6E 66 6F 5F 74 65 78 74 00 # Value
Message Delivery Response TLV - network_error_code
04 23 # Pasrameter Tag
00 03 # Length
05 38 32 # Value