<div dir="ltr">I had a similar use case to this although I use Event Socket to control the call rather than an XML dialplan. You could do something like this:<br><br><div>Incoming call from A-Leg hits a dialplan extension that calls the API 'originate' command to create a new call between the proxy endpoint and your conference application. The originate command would look something like this:<div><span style="font-family:monospace,monospace;font-size:12.8px">originate sofia/gateway/proxy/$1 &bridge(9999@public)</span><br></div></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif"><br>This new call is completely independent of the A-leg, so should persist when the A-leg hangs up.<br><br></font></span></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">Some info on calling api commands from the dialplan can be found here: </span><span style="font-size:12.8px"><a href="https://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan">https://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan</a><br><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">Hope that helps!<br><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px">Sean.</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:12.8px"><a href="http://www.wirex-precision.co.uk">http://www.wirex-precision.co.uk</a></span><br></font></div><div><span style="font-family:monospace,monospace;font-size:12.8px"><br></span></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 1:36 PM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I have this dialplan i'd like to do, let's see if i can explain it :)</div><div><br></div><div>I have a call coming in on 5080, which i forward to another box.</div><div>When B-leg is answered, I want to disconnect the A-leg and bridge B-leg to a conference.</div><div><br></div><div>I'm trying with the following:</div><div><br></div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    <extension name="Move_b_leg_to_<wbr>conference" continue="false"></font></div><div><font face="monospace, monospace">        <condition field="destination_number" expression="^9999$"></font></div><div><font face="monospace, monospace">            <action application="callcenter" data="support@default"/></font></div><div><font face="monospace, monospace">        </condition></font></div><div><font face="monospace, monospace">    </extension></font></div><div><font face="monospace, monospace">   </font></div><div><font face="monospace, monospace">    <extension name="Forward_to_proxy" continue="true"></font></div><div><font face="monospace, monospace">        <condition field="destination_number" expression="^(.*)$"></font></div><div><font face="monospace, monospace">            <action application="export" data="nolocal:execute_on_<wbr>answer=transfer -bleg 9999@public"/></font></div><div><font face="monospace, monospace">            <action application="bridge" data="sofia/gateway/proxy/$1"/<wbr>></font></div><div><font face="monospace, monospace">            <action application="hangup" data="NORMAL_CLEARING"/></font></div><div><font face="monospace, monospace">        </condition></font></div><div><font face="monospace, monospace">    </extension></font></div><div><font face="monospace, monospace"> </font></div></div><div>The idea is to answer the call with the second extension and execute_on_answer to transfer the b-leg to extension 9999 on public, which sends it over to the conference...</div><div><br></div><div>But this doesn't seem to be working, the call seems to be sent to 9999@public:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">2017-09-04 23:09:21.243247 [NOTICE] sofia.c:8159 Channel [sofia/external/<a href="tel:(434)%20541-2121" value="+14345412121" target="_blank">4345412121</a>] has been answered</font></div><div><font face="monospace, monospace">EXECUTE sofia/external/<a href="tel:(434)%20541-2121" value="+14345412121" target="_blank">4345412121</a> transfer(-bleg 9999@public)</font></div><div><font face="monospace, monospace">2017-09-04 23:09:21.243247 [DEBUG] switch_ivr.c:2165 (sofia/external/<a href="mailto:12345@1.2.3.4" target="_blank">12345@1.2.3.4</a>) State Change CS_EXECUTE -> CS_ROUTING</font></div><div><font face="monospace, monospace">2017-09-04 23:09:21.243247 [NOTICE] switch_ivr.c:2172 Transfer sofia/external/<a href="mailto:12345@1.2.3.4" target="_blank">12345@1.2.3.4</a> to XML[9999@public@public]</font></div></div><div><br></div><div>I've also tried doing uuid_transfer on the bleg like so:</div><div><br></div><div><div><font face="monospace, monospace">    <extension name="Forward_to_proxy" continue="true"></font></div><div><font face="monospace, monospace">        <condition field="destination_number" expression="^(.*)$"></font></div><div><font face="monospace, monospace">            <action application="set" data="new_uuid=${create_uuid foo}" inline="true"/></font></div><div><font face="monospace, monospace">            <!-- <action application="export" data="nolocal:api_on_answer=<wbr>uuid_transfer ${new_uuid} -bleg 9999 XML public"/> --></font></div><div><span style="font-family:monospace,monospace">            <action application="bridge" data="{hangup_after_bridge=<wbr>true,origination_uuid=${new_<wbr>uuid}}sofia/gateway/proxy/$1"/<wbr>></span><br></div><div><font face="monospace, monospace">            <action application="uuid_kill" data="${uuid}"/></font></div><div><font face="monospace, monospace">        </condition></font></div><div><font face="monospace, monospace">    </extension></font></div></div><div><br></div><div>and also instead of uuid_transfer, i tried putting the bleg on hold like:</div><div><br></div><div><font face="monospace, monospace">            <action application="export" data="nolocal:api_on_answer=<wbr>uuid_hold ${new_uuid}"/></font><br></div><div><br></div><div>But is seems as soon as the aleg dies, the whole thing dies</div><div><br></div><div><br></div><div>Help is much appreciated!</div><div><br></div><div><br></div><br clear="all"><div><div class="m_2132106735402322607gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank">+34669448337</a></div></div></div></div>
</div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=0a9f3b9c-de97-4108-8fa2-2022fa837d61"><font color="#ffffff" size="1">ᐧ</font></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><div><br></div>
</div></div>