<p>neels <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/22510">View Change</a></p><div style="white-space:pre-wrap"></div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lchan assignment when RTP is set up: don't break on Mode Modify<br><br>Change-Id: I06d3f35fcc71d77e1f30c2b15ab221ef7d5f7f27<br>---<br>M src/osmo-bsc/assignment_fsm.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c</span><br><span>index 8bb879f..a8b6439 100644</span><br><span>--- a/src/osmo-bsc/assignment_fsm.c</span><br><span>+++ b/src/osmo-bsc/assignment_fsm.c</span><br><span>@@ -444,8 +444,11 @@</span><br><span>            return;</span><br><span> </span><br><span>  /* There may be an already existing lchan, if yes, try to work with</span><br><span style="color: hsl(0, 100%, 40%);">-      * the existing lchan. */</span><br><span style="color: hsl(0, 100%, 40%);">-       if (reuse_existing_lchan(conn)) {</span><br><span style="color: hsl(120, 100%, 40%);">+      * the existing lchan.</span><br><span style="color: hsl(120, 100%, 40%);">+         * If an RTP FSM is already set up for the lchan, Mode Modify is not yet supported -- see handling of</span><br><span style="color: hsl(120, 100%, 40%);">+  * LCHAN_EV_REQUEST_MODE_MODIFY in lchan_fsm.c. To not break the lchan, do not even attempt to re-use an lchan</span><br><span style="color: hsl(120, 100%, 40%);">+         * that already has an RTP stream set up, rather establish a new lchan (that transition is well implemented). */</span><br><span style="color: hsl(120, 100%, 40%);">+      if (reuse_existing_lchan(conn) && !conn->lchan->fi_rtp) {</span><br><span> </span><br><span>          /* If the requested mode and the current TCH mode matches up, just send the</span><br><span>           * assignment complete directly and be done with the assignment procedure. */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/22510">change 22510</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/+/22510"/><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: I06d3f35fcc71d77e1f30c2b15ab221ef7d5f7f27 </div>
<div style="display:none"> Gerrit-Change-Number: 22510 </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>