K2InformaticsGmbH / smpp_parser

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

no function clause matching smpp:b2a(<<"dest_addr_np_country">>) #41

Closed walter-weinmann closed 6 years ago

walter-weinmann commented 6 years ago
=== Reason: no function clause matching smpp:b2a(<<"dest_addr_np_country">>) (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 400)
  in function  smpp:'-json2internal/1-fun-1-'/3 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 13)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from smpp:encode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 165)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 47)
  in call from compacted_data_sm_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_data_sm_SUITE.erl, line 49)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)
  in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1062)

Example:

 {"data_sm",
  "00 00 00 39 00 00 01 03 00 00 00 00 E6 ED B0 4C 43 4D 54 00 05 04 31 39 32 "
  "2E 31 36 38 2E 31 2E 31 00 03 0A 31 39 32 2E 31 36 38 2E 31 2E 31 00 C0 00 "
  "7F 06 13 00 02 22 72"}
f().
D = <<"00 00 00 39 00 00 01 03 00 00 00 00 E6 ED B0 4C 43 4D 54 00 05 04 31 39 32 2E 31 36 38 2E 31 2E 31 00 03 0A 31 39 32 2E 31 36 38 2E 31 2E 31 00 C0 00 7F 06 13 00 02 22 72">>.
{ok, DStr} = smpp:decode(D).
smpp:encode(DStr).
DStr == D.
walter-weinmann commented 6 years ago

Similar problem here:

=== Reason: no function clause matching smpp:b2a(<<"additional_status_info_text">>) (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 400)
  in function  smpp:'-json2internal/1-fun-1-'/3 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 13)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from smpp:encode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 165)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 47)
  in call from compacted_data_sm_resp_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_data_sm_resp_SUITE.erl, line 52)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)
  in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1062)

Example:

 {"data_sm_resp",
  "00 00 00 6B 80 00 01 03 00 00 00 00 3C 8E A0 47 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 24 00 19 6D 79 5F 6D 65 73 73 61 67 65 5F 70 61 79 6C 6F 61 64 "
  "5F 30 30 30 30 39 00"}
f().
D = <<"00 00 00 6B 80 00 01 03 00 00 00 00 3C 8E A0 47 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 24 00 19 6D 79 5F 6D 65 73 73 61 67 65 5F 70 61 79 6C 6F 61 64 5F 30 30 30 30 39 00">>.
{ok, DStr} = smpp:decode(D).
smpp:encode(DStr).
DStr == D.
walter-weinmann commented 6 years ago

Similar problem here:

=== Reason: no function clause matching smpp:b2a(<<"ms_msg_wait_facilities">>) (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 400)
  in function  smpp:'-json2internal/1-fun-1-'/3 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 13)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from smpp:encode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 165)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 47)
  in call from compacted_data_sm_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_data_sm_SUITE.erl, line 49)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)
  in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1062)

Example:

 {"data_sm",
  "00 00 00 42 00 00 01 03 00 00 00 00 03 25 B4 26 57 41 50 00 04 03 31 39 32 "
  "2E 31 36 38 2E 31 2E 31 00 04 08 31 36 38 2E 31 32 33 2E 32 33 34 2E 33 32 "
  "31 00 08 00 3F 00 30 00 01 83 02 0C 00 02 BF B3"}
f().
D = <<"00 00 00 42 00 00 01 03 00 00 00 00 03 25 B4 26 57 41 50 00 04 03 31 39 32 2E 31 36 38 2E 31 2E 31 00 04 08 31 36 38 2E 31 32 33 2E 32 33 34 2E 33 32 31 00 08 00 3F 00 30 00 01 83 02 0C 00 02 BF B3">>.
{ok, DStr} = smpp:decode(D).
smpp:encode(DStr).
DStr == D.
walter-weinmann commented 6 years ago

Similar problem here:

=== Reason: no function clause matching smpp:b2a(<<"delivery_failure_reason">>) (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 400)
  in function  smpp:'-json2internal/1-fun-1-'/3 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 13)
  in call from lists:foldl/3 (lists.erl, line 1263)
  in call from smpp:encode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/src/smpp.erl, line 165)
  in call from smpp_test_utils:encode_decode/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/src/smpp_test_utils.erl, line 47)
  in call from compacted_submit_multi_resp_SUITE:test_compacted/1 (d:/K2/smpp_parser_idea/smpp_parser/_build/test/lib/smpp_parser/test/generated/ct/compacted_submit_multi_resp_SUITE.erl, line 49)
  in call from test_server:ts_tc/3 (test_server.erl, line 1546)
  in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1062)

Example:

 {"submit_multi_resp",
  "00 00 00 36 80 00 00 21 00 00 00 00 CE 4B B1 0E 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 04 25 00 01 01 04 "
  "20 00 01 00"}
f().
D = <<"00 00 00 36 80 00 00 21 00 00 00 00 CE 4B B1 0E 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 04 25 00 01 01 04 20 00 01 00">>.
{ok, DStr} = smpp:decode(D).
smpp:encode(DStr).
DStr == D.