diff options
Diffstat (limited to 'bsc-nat/BSCNAT_Tests.ttcn')
-rw-r--r-- | bsc-nat/BSCNAT_Tests.ttcn | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bsc-nat/BSCNAT_Tests.ttcn b/bsc-nat/BSCNAT_Tests.ttcn index fda065af..47d894b5 100644 --- a/bsc-nat/BSCNAT_Tests.ttcn +++ b/bsc-nat/BSCNAT_Tests.ttcn @@ -16,6 +16,7 @@ import from Osmocom_Types all; import from IPL4asp_Types all; import from IPA_Emulation all; +import from RAN_Emulation all; import from MTP3asp_Types all; @@ -24,6 +25,7 @@ import from SCCPasp_Types all; import from SCCP_Emulation all; import from MSC_Simulation all; +import from MSC_ConnectionHandler all; import from BSC_MS_Simulation all; import from BSC_MS_ConnectionHandler all; @@ -136,7 +138,7 @@ function f_init_vty(charstring id := "foo") runs on test_CT { f_vty_transceive(BSCNATVTY, "enable"); } -function f_init(void_fn_bsc_ms fn_bsc_ms, boolean use_osmux) runs on test_CT { +function f_init(void_fn_bsc_ms fn_bsc_ms, BssmapCreateCallback cb_msc, boolean use_osmux) runs on test_CT { var integer i; var charstring id; @@ -147,7 +149,9 @@ function f_init(void_fn_bsc_ms fn_bsc_ms, boolean use_osmux) runs on test_CT { f_init_MscState(msc[i], mp_msc_pc +i, mp_bsc_pc, mp_msc_ssn, mp_bsc_ssn); id := "MSC" & int2str(i); msc[i].MSC := MSC_CT.create(id); - msc[i].MSC.start(MSC_Simulation.main(mp_msc_ip, mp_msc_port + i, msc[i].sccp_pars, msc[i].sccp_addr_own, id)); + msc[i].MSC.start(MSC_Simulation.main(mp_msc_ip, mp_msc_port + i, + msc[i].sccp_pars, msc[i].sccp_addr_own, + cb_msc, id)); } /* Wait for bsc_nat to attach to MSC. Before that all BSC connections will be dropped */ @@ -186,7 +190,9 @@ function f_wait_finish(timer T) runs on test_CT { function f_TC_recv_dump(boolean use_osmux := false) runs on test_CT { timer T := 30.0; - f_init(refers(bsc_ms_establish_fully), use_osmux); + f_init(refers(bsc_ms_establish_fully), + refers(CreateCallback_establish_fully), + use_osmux); f_wait_finish(T); } |