From e21c93fc96580b4cf702c07350f692c15f0f599d Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 14 Jul 2017 17:57:21 +0200 Subject: [PATCH] osmo_msc: only clear A-Interface connections for GSM calls The clear command is sent via the A-Interface for both, A and IuCS connections. This is wrong. Only send the clear command for connections related to the A-Interface, which means only for connections where the RAN is set to GERAN --- src/libmsc/osmo_msc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libmsc/osmo_msc.c b/src/libmsc/osmo_msc.c index ff38fcea2..8105795a1 100644 --- a/src/libmsc/osmo_msc.c +++ b/src/libmsc/osmo_msc.c @@ -229,8 +229,9 @@ void msc_subscr_con_cleanup(struct gsm_subscriber_connection *conn) DEBUGP(DRLL, "Freeing subscriber connection" " with NULL subscriber\n"); - /* A-Interface connection */ - a_iface_tx_clear_cmd(conn); + /* Clear A-Interface connection */ + if (conn->via_ran == RAN_GERAN_A) + a_iface_tx_clear_cmd(conn); if (!conn->conn_fsm) return;