vfuk_onw: activate mangle_tt_sri_sm and add test config for it
diff --git a/src/mgw_nat_act_vfuk_onw.erl b/src/mgw_nat_act_vfuk_onw.erl
index 58023cc..00d2c2d 100644
--- a/src/mgw_nat_act_vfuk_onw.erl
+++ b/src/mgw_nat_act_vfuk_onw.erl
@@ -55,6 +55,10 @@
DataBin
end;
+% Rewrite at SCCP level: call into mangle_tt_sri_sm
+rewrite_actor(sccp, from_msc, Path, SccpType, SccpDec) ->
+ mangle_tt_sri_sm:mangle_tt_sri_sm(from_msc, Path, SccpType, SccpDec);
+
% Rewrite at MAP level: call into map_masq module
rewrite_actor(map, From, Path, 0, MapDec) ->
mangle_map_camel_phase(From, Path, MapDec);
diff --git a/test/mgw_nat_act_vfuk_onw_tests.erl b/test/mgw_nat_act_vfuk_onw_tests.erl
index 29bf353..8c8c82e 100644
--- a/test/mgw_nat_act_vfuk_onw_tests.erl
+++ b/test/mgw_nat_act_vfuk_onw_tests.erl
@@ -58,9 +58,11 @@
{ [ {gt_range_from, 443850000000000 },
{gt_range_to, 443859999999999 } ], [ phase1 ] }
]),
+ application:set_env(mgw_nat, mangle_tt_sri_sm_pfx, [ 91 ]),
mgw_nat_act_vfuk_onw:reload_config().
teardown(_) ->
+ application:unset_env(mgw_nat, mangle_tt_sri_sm_pfx),
application:unset_env(mgw_nat, camel_phase_patch_table).
% Test the tuple walker and camelph_twalk_cb() directly, as we don't have a