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
This commit is contained in:
Philipp Maier
2017-07-14 17:57:21 +02:00
committed by Neels Hofmeyr
parent 956a2eb418
commit e21c93fc96

View File

@@ -229,7 +229,8 @@ void msc_subscr_con_cleanup(struct gsm_subscriber_connection *conn)
DEBUGP(DRLL, "Freeing subscriber connection"
" with NULL subscriber\n");
/* A-Interface connection */
/* Clear A-Interface connection */
if (conn->via_ran == RAN_GERAN_A)
a_iface_tx_clear_cmd(conn);
if (!conn->conn_fsm)