fixup for re-est: do not succeed on acceptance fail

Fix a bug introduced in commit
 implement CM Re-Establish for voice calls
 ae98b97382
 Neels Hofmeyr <neels@hofmeyr.de>
 Thu Jul 29 22:40:59 2021 +0200
 I6fa37d6ca9fcb1637742b40e37b68d67664c9b60

We should only succeed when conn_accepted == true!

Related: SYS#5130
Change-Id: I3679162143e8d7d8c0878de2102faa11eadfccfc
This commit is contained in:
Neels Hofmeyr 2024-04-03 20:50:36 +02:00
parent 0cc03ca427
commit c19f8fe917
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ static void evaluate_acceptance_outcome(struct osmo_fsm_inst *fi, bool conn_acce
if (msc_a->complete_layer3_type == COMPLETE_LAYER3_LU)
msc_a_put(msc_a, MSC_A_USE_LOCATION_UPDATING);
if (msc_a->complete_layer3_type == COMPLETE_LAYER3_CM_RE_ESTABLISH_REQ) {
if (conn_accepted && msc_a->complete_layer3_type == COMPLETE_LAYER3_CM_RE_ESTABLISH_REQ) {
/* Trigger new Assignment to recommence the voice call. A little dance here because normally we verify
* that no CC trans is already active. */
struct gsm_trans *cc_trans = msc_a->cc.active_trans;