msc_a: switch RAN type back to SGs when a CSFB-Call is cleared

When a CSFB call is over the MS changes back to LTE after the call is
cleared. However, at the moment the MSC does not change the
cs.attached_via_ran flag. This may cause problems with the next call. Lets
make sure that if there is an SGs association present, the ran type is
set back to SGs when the call is cleared.

Related: SYS#4624
Change-Id: I104adecb0645b81b90ee230c57bf8b463c9e7045
This commit is contained in:
Philipp Maier 2019-08-15 14:56:54 +02:00 committed by dexter
parent ed73ae13a1
commit 47cf84d8d7
1 changed files with 5 additions and 0 deletions

View File

@ -754,6 +754,11 @@ static void msc_a_fsm_releasing_onenter(struct osmo_fsm_inst *fi, uint32_t prev_
};
msc_a_get(msc_a, MSC_A_USE_WAIT_CLEAR_COMPLETE);
msc_a_ran_down(msc_a, MSC_ROLE_I, &msg);
/* The connection is cleared. The MS will now go back to 4G,
Switch the RAN type back to SGS. */
if (vsub && vsub->sgs_fsm->state == SGS_UE_ST_ASSOCIATED)
vsub->cs.attached_via_ran = OSMO_RAT_EUTRAN_SGS;
}
if (vsub)