summaryrefslogtreecommitdiffstats
path: root/bsc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-06 16:17:30 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-06 17:06:29 +0200
commit955491872e90aa6121ab0d53f485800799f8fe8c (patch)
treec355b2ec0b773a4cba559a610dbe822dfc1b1226 /bsc
parentc6b78ff2f99667f223158647437b071d2f6d4671 (diff)
bsc: Only append Osmux IEs in BSSAP AoIP
Previous to this commit, BSSAP Reset (Ack) messages contained Osmux Support IE even if transport was SCCPLite, where those IEs are actually meaningless. Change-Id: If6cc0f65a0f273297a4523e5d6a7564d966f0aa6
Diffstat (limited to 'bsc')
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn6
1 files changed, 4 insertions, 2 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index 3cc8f8a..c7f6495 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -379,10 +379,12 @@ function f_MscConnHdlr_init(integer i, HostName bts, HostName mgw, BSSMAP_FIELD_
private function UnitdataCallback(PDU_BSSAP bssap)
runs on RAN_Emulation_CT return template PDU_BSSAP {
var template PDU_BSSAP resp := omit;
+ var boolean append_osmux_support := g_ran_ops.use_osmux and
+ (g_ran_ops.transport == BSSAP_TRANSPORT_AoIP);
/* answer all RESET with a RESET ACK */
- if (match(bssap, tr_BSSMAP_Reset(g_ran_ops.use_osmux))) {
- resp := ts_BSSMAP_ResetAck(g_ran_ops.use_osmux);
+ if (match(bssap, tr_BSSMAP_Reset(append_osmux_support))) {
+ resp := ts_BSSMAP_ResetAck(append_osmux_support);
}
return resp;