aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-05-30 13:10:46 +0200
committerHarald Welte <laforge@gnumonks.org>2012-05-30 13:10:46 +0200
commit44f44c52930e9729bdd805dc834d3d7471518767 (patch)
tree529daa60a161ff632ce22ffe17511c1f95214288
parent237d60cd039adab6bc0c4c25fcca227612bc3b90 (diff)
vfuk_onw: activate mangle_tt_sri_sm and add test config for it
-rw-r--r--src/mgw_nat_act_vfuk_onw.erl4
-rw-r--r--test/mgw_nat_act_vfuk_onw_tests.erl2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mgw_nat_act_vfuk_onw.erl b/src/mgw_nat_act_vfuk_onw.erl
index 1224bd4..8216358 100644
--- a/src/mgw_nat_act_vfuk_onw.erl
+++ b/src/mgw_nat_act_vfuk_onw.erl
@@ -41,6 +41,10 @@ rewrite_actor(sctp, From, Path, 2, DataBin) ->
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 @@ setup() ->
{ [ {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