From 955491872e90aa6121ab0d53f485800799f8fe8c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 6 Jun 2019 16:17:30 +0200 Subject: 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 --- bsc/MSC_ConnectionHandler.ttcn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bsc') diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn index 3cc8f8a6..c7f6495b 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; -- cgit v1.2.3