From 6c202b211d3e0fa4b9168666384da2ba06214e02 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 30 May 2012 13:10:46 +0200 Subject: vfuk_onw: activate mangle_tt_sri_sm and add test config for it --- src/mgw_nat_act_vfuk_onw.erl | 4 ++++ test/mgw_nat_act_vfuk_onw_tests.erl | 2 ++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.3