bsc_nat: Wait for bsc-nat to connect to MSC before connecting the BSC

Change-Id: Ic02ce9bd46cab7e6d4833b1d838c334e377f7d50
This commit is contained in:
Daniel Willmann 2018-10-25 17:20:27 +02:00 committed by Harald Welte
parent aa17059b32
commit 991fd78860
1 changed files with 2 additions and 0 deletions

View File

@ -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;