summaryrefslogtreecommitdiffstats
path: root/bsc-nat
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-10-25 17:20:27 +0200
committerHarald Welte <laforge@gnumonks.org>2019-03-29 11:12:14 +0000
commit991fd78860cd58c9041fef5608ef2947232e187d (patch)
treefc36d5d5258daeea9b474a98720dd73ac93b8f73 /bsc-nat
parentaa17059b329d592d1f2eaa8b1adf2ffdadfd3c78 (diff)
bsc_nat: Wait for bsc-nat to connect to MSC before connecting the BSC
Diffstat (limited to 'bsc-nat')
-rw-r--r--bsc-nat/BSCNAT_Tests.ttcn2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsc-nat/BSCNAT_Tests.ttcn b/bsc-nat/BSCNAT_Tests.ttcn
index b6dca281..685066ce 100644
--- a/bsc-nat/BSCNAT_Tests.ttcn
+++ b/bsc-nat/BSCNAT_Tests.ttcn
@@ -112,6 +112,8 @@ function f_init() runs on test_CT {
msc[i].MSC.start(MSC_Simulation.main(mp_msc_ip, mp_msc_port + i, msc[i].sccp_pars, msc[i].sccp_addr_own, id));
}
+ /* Wait for bsc_nat to attach to MSC. Before that all BSC connections will be dropped */
+ f_sleep(5.0);
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;