Closed shamis closed 6 years ago
@shamis Can you please verify?
BSm = maps:get(broadcast_sm, maps:get(templates, smpp:info())).
smpp:encode(BSm).
results in {error,<<"Expected TLV missing">>}
@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">>}
@c-bik my bad some how after restarting the vm its working fine
info does not support the broadcast_sm and query_broadcast_sm_resp