MAP MASQ: correct function name of isup_party_replace_prefix()
and handle the case of a transaction that has asn1_NOVALUE as components,
i.e. no components.
diff --git a/src/map_masq.erl b/src/map_masq.erl
index 9dc0ec6..1edc4a2 100644
--- a/src/map_masq.erl
+++ b/src/map_masq.erl
@@ -65,7 +65,7 @@
io:format("Roaming Number IN = ~p~n", [RoamNumIn]),
{ok, MsrnPfxStp} = application:get_env(msrn_pfx_stp),
{ok, MsrnPfxMsc} = application:get_env(msrn_pfx_msc),
- RoamNumOut = mgw_nat:isup_party_replace(RoamNumIn, MsrnPfxMsc, MsrnPfxStp),
+ RoamNumOut = mgw_nat:isup_party_replace_prefix(RoamNumIn, MsrnPfxMsc, MsrnPfxStp),
io:format("Roaming Number OUT = ~p~n", [RoamNumOut]),
RoamNumOutTBCD = map_codec:encode_addr_string(RoamNumOut),
{roamingNumber, RoamNumOutTBCD};
@@ -242,6 +242,8 @@
end.
% recurse over all components
+handle_tcap_components(asn1_NOVALUE) ->
+ asn1_NOVALUE;
handle_tcap_components(List) ->
% we reverse the origianl list, as the tail recursive _acc function
% will invert the order of components again