K2InformaticsGmbH / smpp_parser

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

broadcast_sm and query_broadcast_sm_resp not supported #18

Closed shamis closed 6 years ago

shamis commented 6 years ago

info does not support the broadcast_sm and query_broadcast_sm_resp

c-bik commented 6 years ago

@shamis Can you please verify?

shamis commented 6 years ago
BSm = maps:get(broadcast_sm, maps:get(templates, smpp:info())).
smpp:encode(BSm).

results in {error,<<"Expected TLV missing">>}

c-bik commented 6 years ago

@shamis the following is from master and it is working for me... please check if you are running against any older version?

> #{templates := #{broadcast_sm := BSm}} = smpp:info().
> BSm.
#{broadcast_area_identifier =>
      [#{details => <<>>,format => 0}],
  broadcast_content_type => #{network_type => 0,service => 0},
  broadcast_frequency_interval =>
      #{number => 0,time_unit => 0},
  broadcast_rep_num => 0,command_id => <<"broadcast_sm">>,
  command_status => <<"ESME_ROK">>,sequence_number => 0}
> rp(smpp:encode(BSm)).
{ok,<<"00 00 00 34 00 00 01 11 00 00 00 00 00 00 00 00 00 01 01 00 00 00 00 00 00 03 00 06 04 00 02 00 00 06 05 00 03 00 00 00 06 01 00 03 00 00 00 06 06 00 01 00">>}
shamis commented 6 years ago

@c-bik my bad some how after restarting the vm its working fine