diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-07-14 17:57:21 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2017-07-14 17:57:21 +0200 |
commit | 7a1c03393c9701f38bf32a6e7f248910f9c09ccd (patch) | |
tree | fe391d9de4994be9353795cc129aaf05431a6521 | |
parent | 1a63a31b577fa219b9a78a317fa12adbd8454a8f (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
-rw-r--r-- | openbsc/src/libmsc/osmo_msc.c | 5 |
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) return; |