diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2019-08-15 14:56:54 +0200 |
---|---|---|
committer | dexter <pmaier@sysmocom.de> | 2019-08-19 09:00:24 +0000 |
commit | 47cf84d8d7ab76cba5cc9da7305ef34ea5cbd1ea (patch) | |
tree | 5170f26c618c367c4c315363583c38eaf512077a | |
parent | ed73ae13a1a96b9be3cb2fa999d8152882c09416 (diff) |
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
-rw-r--r-- | src/libmsc/msc_a.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c index bd69eedba..553761fe3 100644 --- a/src/libmsc/msc_a.c +++ b/src/libmsc/msc_a.c @@ -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) |