summaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-27 16:52:56 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-27 15:33:27 +0000
commitd5833a8dcc1d9c38c4271f4522b27214009cb073 (patch)
tree6d1d473d00c1d12f3b6358529fdb6e8175d5d1f5 /msc
parent710ec2154f6986655f1cd98cc2213ab603c6f03f (diff)
BSSAP_Adapter: Split f_bssap_start() from f_bssap_init()
In non-handler mode, the SCCP emulation is currently started before there's a user registered to SCCP_SP_PORT. If the first BSSMAP package arrives from the network, then the SCCP_Emulation will crash as it cannot deliver the resulting SCCP user primitive to the user. Let's split start from initialization, so user code can still register something to SCCP_SP_PORT before starting SCCP_Emulation. Change-Id: I55c94f18531bb7e5369500dc90f4b0ff3a420774
Diffstat (limited to 'msc')
-rw-r--r--msc/MSC_Tests.ttcn1
1 files changed, 1 insertions, 0 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 56ac3d3..f843839 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -228,6 +228,7 @@ function f_init(integer num_bsc := 1) runs on MTC_CT {
for (var integer i := 0; i < num_bsc; i := i + 1) {
if (isbound(mp_bssap_cfg[i])) {
f_bssap_init(g_bssap[i], mp_bssap_cfg[i], "MSC_Test_" & int2str(i), BSC_BssmapOps);
+ f_bssap_start(g_bssap[i]);
} else {
setverdict(fail, "missing BSSAP configuration");
}