<div dir="ltr"><div>According to sect. 7.1 of  <a href="https://www.ietf.org/rfc/rfc3891.txt">https://www.ietf.org/rfc/rfc3891.txt</a>, when an INVITE is recieved with a replaces header, containing the call-id of another dialog, the receiving party needs to respond immediately with a 200OK containing the new INVITES call-id and cancelling the other call-id. In the below, Alice calls Bobs Desk but he&#39;s not there. He&#39;s in his lab, and hears the Desk ring, so does a dialoginfo call pickup..<br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">                              Bob                      Bob</font></div><div><font face="monospace, monospace">       Alice                  desk                     lab</font></div><div><font face="monospace, monospace">        |                       |                        |</font></div><div><font face="monospace, monospace">    *1  |-----INVITE-----------&gt;|                        |</font></div><div><font face="monospace, monospace">    *2  |&lt;----180---------------|  Bob hears desk phone  |</font></div><div><font face="monospace, monospace">        |                       |  ringing from lab but  |</font></div><div><font face="monospace, monospace">        |                       |  isn&#39;t REGISTERed yet  |</font></div><div><font face="monospace, monospace">        |                       |                        |</font></div><div><font face="monospace, monospace">        |                       |&lt;--fetch dialog state --|</font></div><div><font face="monospace, monospace">        |                       |---response -----------&gt;|</font></div><div><font face="monospace, monospace">   *3/4 |&lt;-----INVITE with Replaces/200/ACK--------------|</font></div><div><font face="monospace, monospace">   *5/6 |------CANCEL/200------&gt;|                        |</font></div><div><font face="monospace, monospace">   *7   |&lt;-----487--------------|                        |</font></div><div><font face="monospace, monospace">        |------ACK-------------&gt;|                        |</font></div><div><font face="monospace, monospace">        |                       |                        |</font></div><div><font face="monospace, monospace">        |                       |                        |</font></div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span></div><div>I have a setup of OpenSIPS and FreeSWITCH. OpenSIPS loadbalances all INVITES to FreeSWITCH, and then any subsequent packets are just relayed on as a stateful proxy. With that in mind, see what happens if I try do the same..</div><div><span class="" style="white-space:pre">                </span></div><div><span class=""><span style="white-space:pre"><a href="https://pastebin.freeswitch.org/24660">https://pastebin.freeswitch.org/24660</a> - sip trace of..</span><br></span></div><div><span class=""><span style="white-space:pre">1. Alice calls bobs desk</span></span></div><div><span class=""><span style="white-space:pre">2. Bobs desk rings</span></span></div><div><span class=""><span style="white-space:pre">3. Bobs lab tries to pick up the call, so that bobs lab is the one speaking to alice and bobs desk stops ringing</span></span></div><div><span class=""><span style="white-space:pre">4. Instead, Alice gets cut off and bobs desk ends up speaking to bob lab</span></span></div><div><span class=""><span style="white-space:pre"><br></span></span></div><div><span class=""><span style="white-space:pre"><a href="https://pastebin.freeswitch.org/24650">https://pastebin.freeswitch.org/24650</a> - FS logs of this issue</span><br></span></div><div><font face="monospace, monospace">   </font></div><div>As you can see, on line 19, Bobs lab sends an INVITE with a callid matching that of the one Alice established... FS sends a 200OK back.. All good so far. At this point I logically feel FS would then send a 200OK to the a dialog/Alice and bridge the two.. but instead it kills the dialog with alice and takes place directly with bobs desk..</div><div><br></div><div>tl;dr is FS handing replaces correctly here?</div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Any advice would be much appreciated.</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Ben</pre></div></div>