From fd338332bf02e602a80923cd6286d2e57e4a0d28 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 24 Nov 2017 17:23:23 +0100 Subject: [PATCH] Add new parameter to plug osmo-bsc_nat in the middle --- ipa/IPA_Test.cfg | 10 ++++++---- ipa/IPA_Test.ttcn | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ipa/IPA_Test.cfg b/ipa/IPA_Test.cfg index e5a3d13f1..320ccf9ec 100644 --- a/ipa/IPA_Test.cfg +++ b/ipa/IPA_Test.cfg @@ -7,10 +7,12 @@ FileMask := LOG_ALL | TTCN_MATCHING; #*.*.udpReuseAddress := "yes"; [MODULE_PARAMETERS] -#mp_local_port := 2727; -#mp_local_ip:= "127.0.0.1"; -#mp_remote_port := 2427; -#mp_remote_ip:= "127.0.0.1"; +#mp_bsc_port := 49999; +#mp_bsc_ip := "127.0.0.1"; +#mp_msc_port := 5100; +#mp_msc_ip := "127.0.0.1"; +#mp_nat_port := 5000; +#mp_nat_ip := "127.0.0.1"; [MAIN_CONTROLLER] diff --git a/ipa/IPA_Test.ttcn b/ipa/IPA_Test.ttcn index c8b820534..d15c50fb0 100644 --- a/ipa/IPA_Test.ttcn +++ b/ipa/IPA_Test.ttcn @@ -46,6 +46,9 @@ modulepar { PortNumber mp_msc_port := 5000; charstring mp_msc_ip := "127.0.0.1"; + PortNumber mp_nat_port := 5000; + charstring mp_nat_ip := "127.0.0.1"; + charstring mp_sccp_service_type := "mtp3_itu"; integer mp_bsc_pc := 196; @@ -110,7 +113,7 @@ function f_init() runs on test_CT { for (i := 0; i < NUM_BSC; i := i+1) { f_init_BscState(bsc[i], mp_bsc_pc +i, mp_msc_pc, mp_bsc_ssn, mp_msc_ssn); bsc[i].BSC := BSC_CT.create; - bsc[i].BSC.start(BSC_MS_Simulation.main(mp_msc_ip, mp_msc_port, mp_bsc_ip, mp_bsc_port+i, + bsc[i].BSC.start(BSC_MS_Simulation.main(mp_nat_ip, mp_nat_port, mp_bsc_ip, mp_bsc_port+i, bsc[i].sccp_pars, bsc[i].sccp_addr_own, bsc[i].sccp_addr_peer)); }