aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-05-30 13:10:46 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-05 11:16:42 +0200
commit6c202b211d3e0fa4b9168666384da2ba06214e02 (patch)
tree2b7d02d2849e2a006c6b22aee06da7468699f7a4
parent54274d40c4583eb76a54a48b1b271726043fc122 (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 58023cc..00d2c2d 100644
--- a/src/mgw_nat_act_vfuk_onw.erl
+++ b/src/mgw_nat_act_vfuk_onw.erl
@@ -55,6 +55,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