<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25036">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix CM Re-Establishment Request: allocate new A conn<br><br>For a call re-establishment, the MS shows up on a different cell and<br>requests CM Re-Establishment (3GPP TS 24.008 9.2.4). As soon as the<br>Layer 3 is established, the MSC will clear the first A-connection; the<br>re-establishment *has* to happen on a new separate A-connection. So for<br>a brief moment we must allow two distinct A-interface connections to be<br>used for the same subscriber.<br><br>Tested by BSC_Tests.TC_cm_reestablishment<br>added in I1e7d446644f46b8a0a94688e618ffb4f23a8900e<br><br>Related: SYS#5130<br>Change-Id: I2da9a971dd36c4289a78040adfe85704c8282c59<br>---<br>M src/osmo-bsc/gsm_08_08.c<br>1 file changed, 7 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/gsm_08_08.c b/src/osmo-bsc/gsm_08_08.c</span><br><span>index 80ed874..1f6b38e 100644</span><br><span>--- a/src/osmo-bsc/gsm_08_08.c</span><br><span>+++ b/src/osmo-bsc/gsm_08_08.c</span><br><span>@@ -415,8 +415,13 @@</span><br><span> </span><br><span>    /* If this Mobile Identity already has an active bsc_subscr, look whether there also is an active A-interface</span><br><span>         * conn for this subscriber. This may be the case during a Perform Location Request (LCS) from the MSC that</span><br><span style="color: hsl(0, 100%, 40%);">-      * started on an IDLE MS, and now the MS is becoming active. Associate with the existing conn. */</span><br><span style="color: hsl(0, 100%, 40%);">-       if (bsub)</span><br><span style="color: hsl(120, 100%, 40%);">+      * started on an IDLE MS, and now the MS is becoming active. Associate with the existing conn.</span><br><span style="color: hsl(120, 100%, 40%);">+         *</span><br><span style="color: hsl(120, 100%, 40%);">+     * However, for a CM Re-Establishment Request, we must *not* re-use the existing conn, but allocate a second</span><br><span style="color: hsl(120, 100%, 40%);">+   * conn for the same bsub. The previous conn will be Clear'ed by the MSC as soon as it receives the L3 Complete</span><br><span style="color: hsl(120, 100%, 40%);">+    * message == the CM Re-Establishment Request.</span><br><span style="color: hsl(120, 100%, 40%);">+         */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (bsub && !(pdisc == GSM48_PDISC_MM && mtype == GSM48_MT_MM_CM_REEST_REQ))</span><br><span>                 conn = bsc_conn_by_bsub(bsub);</span><br><span> </span><br><span>   if (!conn) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/25036">change 25036</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bsc/+/25036"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2da9a971dd36c4289a78040adfe85704c8282c59 </div>
<div style="display:none"> Gerrit-Change-Number: 25036 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>