path: root/openbsc
diff options
authorPhilipp Maier <pmaier@sysmocom.de>2017-07-14 17:57:21 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2017-07-14 17:57:21 +0200
commit7a1c03393c9701f38bf32a6e7f248910f9c09ccd (patch)
treefe391d9de4994be9353795cc129aaf05431a6521 /openbsc
parent1a63a31b577fa219b9a78a317fa12adbd8454a8f (diff)
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
Diffstat (limited to 'openbsc')
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/osmo_msc.c b/openbsc/src/libmsc/osmo_msc.c
index 57f517009..869ca6462 100644
--- a/openbsc/src/libmsc/osmo_msc.c
+++ b/openbsc/src/libmsc/osmo_msc.c
@@ -217,8 +217,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)