<div dir="ltr">Hi,<div><br></div><div>I have a question. I am trying to handle REFER requests as per RFC 4579 in OpenSIPS B2BUA Module.</div><div><br></div><div>User-A wants to initiate a conference with User-B and User-C.</div><div><br></div><div>step 1: Create Conference:</div><div>=> INVITE sip:conference@conference-url</div><div><= 200 OK</div><div>=> ACK</div><div>--</div><div>This INVITE is forwarded to FreeSwitch to dial into a conference bridge.</div><div>--</div><div><br></div><div>Step 2: Add User-B to conference:<br></div><div>=> REFER sip:conference@conference-url (in-dialog), Refer-To: User-B</div><div><= 202 Accepted</div><div>--</div><div>I want to send an INVITE to the same Conference Bridge in the first step and an INVITE to User-B with a Replaces header and then bridge this together.</div><div>It works until this step.</div><div>-- </div><div><br></div><div>Step 3: Add User-C to conference:<br></div><div></div><div><div>=> REFER sip:conference@conference-url (in-dialog), Refere-To: User-C</div><div><= 202 Accepted</div><div>--</div><div>Even though it is the same logic as for User-C, this fails with a "404 not here" created in the b2b module, as it fails to find the dialog from Step 1?!?!?</div><div>--</div><div><br></div><div>Config:</div><div>route{</div><div>    if (is_method("INVITE") && !has_totag()) {<br>        loose_route();<br><br>        # create the server entity<br>        b2b_server_new("caller");<br><br>        # create the initial client entity, to connect the caller with the callee<br>        b2b_client_new("callee", $ru);<br><br>        # initialize B2B session for the "refer" scenario<br>        b2b_init_request("refer");<br>        exit;<br>    }<br></div><div>}</div><div><br>route[b2b_logic_request] {<br>    if ($rm != "REFER") {<br>        # for requests other than REFER, no special actions needs to be done,<br>        # just pass the request to the peer<br>        b2b_pass_request();<br>        exit;<br>    }<br><br>    if ($b2b_logic.ctx(conf) == "1") {<br>        b2b_send_reply(202, "Accepted");<br><br>        $var(uri) = "sip:"+$(hdr(Refer-To){nameaddr.uri}{uri.user}{s.select,0,;})+"@"+$(hdr(Refer-To){nameaddr.uri}{uri.host});<br><br>        b2b_client_new("conf", "$ru");<br><br>        # create the client entity corresponding to<br>        # the user specified in the 'Refer-To' header<br>            b2b_client_new("referee", $var(uri));<br>        # bridge the referrer's peer with the referee<br>        b2b_bridge("conf", "referee");<br></div><div>   }</div><div>}</div><div><br></div><div>Nothing spectacular. Anyone any hints as, why the second REFER fails?</div><div><br></div><div>Thanks,</div><div>Carsten</div><div><br></div><div></div></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">--</div><div dir="ltr">Carsten Bock I CTO & Founder</div><div dir="ltr"><br><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">ng-voice GmbH</span><span lang="EN-US" style="color:rgb(0,112,192)"><u></u><u></u></span></p><p style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">Trostbrücke 1 I 20457 Hamburg I Germany<br>T +49 40 524 75 93-40 | M +49 179 2021244 I <a href="http://www.ng-voice.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:black">www.ng-voice.com</span></a><u></u><u></u></span></p><p style="margin:0cm 0cm 0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span lang="EN-US" style="color:black">Registry Office at Local Court Hamburg, HRB 120189<br>Managing Directors: Dr. David Bachmann, Carsten Bock</span></p></div></div></div></div></div></div></div></div></div>