summaryrefslogtreecommitdiffstats
path: root/bsc
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-06 19:21:41 +0100
committerHarald Welte <laforge@gnumonks.org>2018-11-18 20:04:01 +0000
commit2eeb511f43c16f87710ee2697a2d4e5e0a9cd8f7 (patch)
tree961f95931ede029881ab0e340c9390ea869b6387 /bsc
parentb1599b11e3611896f12bd7960ceda8268b06c71f (diff)
LCLS: explicitly check for *CX adjustment
Previously the expectations for number of CRCX and MDCX messages from MGW was adjusted unconditionally for LCLS tests. However this is only necessary for MGW-loop type of LCLS. Use explicit variable (with default value preserving current behavior) to decide whether to apply this adjustment or not. This simplifies support for other kinds of LCLS loops. Change-Id: I07b2c56991977b5e80c372a5b8338f348f14c076 Related: OS#3659
Diffstat (limited to 'bsc')
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn9
1 files changed, 6 insertions, 3 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index f96e74a..0ea73a0 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -408,7 +408,9 @@ type record TestHdlrParamsLcls {
BIT4 cfg optional,
/* LCLS Connection Status Control */
BIT4 csc optional,
- BIT4 exp_sts optional
+ BIT4 exp_sts optional,
+ /* Whether to adjust *cx_seen_exp for LCLS tests */
+ boolean adjust_cx_exp
}
type record TestHdlrParamsHandover {
@@ -446,7 +448,8 @@ template (value) TestHdlrParams t_def_TestHdlrPars := {
gcr := omit,
cfg := omit,
csc := omit,
- exp_sts := omit
+ exp_sts := omit,
+ adjust_cx_exp := true
},
handover := omit,
aoip := true
@@ -992,7 +995,7 @@ runs on MSC_ConnHdlr {
* is mgcp_conn[1]. The BSC performs this operation already before the
* assignment complete is generated. This means we expect another MDCX
* at mgcp_conn[1] when LCLS is expected. */
- if (ispresent(exp_ass_cpl.pdu.bssmap.assignmentComplete.lCLS_BSS_Status.lCLS_BSS_StatusValue)) {
+ if (g_pars.lcls.adjust_cx_exp and ispresent(exp_ass_cpl.pdu.bssmap.assignmentComplete.lCLS_BSS_Status.lCLS_BSS_StatusValue)) {
if (valueof(exp_ass_cpl.pdu.bssmap.assignmentComplete.lCLS_BSS_Status.lCLS_BSS_StatusValue) == LCLS_STS_locally_switched) {
g_media.mgcp_conn[1].mdcx_seen_exp := g_media.mgcp_conn[1].mdcx_seen_exp + 1;