<p>Neels Hofmeyr <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12400">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix: incoming call during ongoing call<br><br>If a call is already busy and another call is coming in, do not try to<br>immediately assign an lchan (before this patch, it fails because there already<br>is an mgcp_ctx for the conn). Leave the second CC transaction waiting.<br><br>When a call is hung up, as soon as the old mgcp_ctx is discarded, look for<br>other CC transactions that are waiting. If there is one, trigger assignment, so<br>a new mgcp_ctx is set up for the new call.<br><br>This fixes the following scenario:<br><br>- from A, call B.<br>- from C, call B; B rings during ongoing call.<br>- in B, pick up the call, choose to drop the old call.<br><br>After this patch, and with osmo-bsc patch with change-id<br>  I0c00ec2c120e5008281755adcd4944a3ce4d8355<br>we are now able to talk to the new caller.<br><br>I currently haven't tested yet what happens if there is *three* peers trying to<br>talk to the same number, running out of lab phones (not really, just not<br>bothering now). Possibly we should be taking over the particular call indicated<br>by the CC TI; instead, the current patch version takes on whichever waiting<br>call it finds first. This is fine if *one* additional call comes in on an<br>ongoing call, and this is already a huge improvement to what we had before.<br><br>Related: OS#3735<br>Change-Id: I0ba216b737909e92080a722db26e3577726c63cb<br>---<br>M src/libmsc/msc_mgcp.c<br>1 file changed, 31 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/00/12400/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12400">change 12400</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/12400"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I0ba216b737909e92080a722db26e3577726c63cb </div>
<div style="display:none"> Gerrit-Change-Number: 12400 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>