From 4724c6a55a140bc12505f9778dc3975c2844e29c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 28 Jan 2018 16:21:05 +0100 Subject: Terminate bsc_subscr_conn_fsm on SCCP N-DISC.ind from MSC If the MSC is disconnecting the SCCP channel, we must terminate the FSM which in turn will release all lchan's and other state. This makes TC_chan_rel_hard_rlsd pass. As a side-effect, this fixes TC_chan_act_ack_est_ind_refused(), where the MSC is answering with CREF to our CR/COMPL_L3. Closes: OS#2731 Change-Id: I64a46b5bcd4272e3fa2ff4ee824c2f3fdff6854b --- src/osmo-bsc/bsc_subscr_conn_fsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c index 8d18f81c1..e4c3adfe2 100644 --- a/src/osmo-bsc/bsc_subscr_conn_fsm.c +++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c @@ -351,6 +351,7 @@ static void gscon_fsm_allstate(struct osmo_fsm_inst *fi, uint32_t event, void *d /* MSC or SIGTRAN network has hard-released SCCP connection */ /* hard-release the lchan */ /* hard-release any MGCP state */ + osmo_fsm_inst_term(fi, OSMO_FSM_TERM_REGULAR, NULL); break; case GSCON_EV_RLL_REL_IND: /* BTS reports that one of the LAPDm data links was released */ -- cgit v1.2.3