Change in ...osmo-msc[master]: msc_a: switch RAN type back to SGs when a CSFB-Call is cleared

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Mon Aug 19 09:00:24 UTC 2019


dexter has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-msc/+/15222 )

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

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
---
M src/libmsc/msc_a.c
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/libmsc/msc_a.c b/src/libmsc/msc_a.c
index bd69eed..553761f 100644
--- a/src/libmsc/msc_a.c
+++ b/src/libmsc/msc_a.c
@@ -754,6 +754,11 @@
 		};
 		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)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/15222
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I104adecb0645b81b90ee230c57bf8b463c9e7045
Gerrit-Change-Number: 15222
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190819/5d7cbbc9/attachment.htm>


More information about the gerrit-log mailing list