<div dir="auto">Thanks for your reply!<div dir="auto"><br></div><div dir="auto">I use originate extensively, but it never occurred to me to use it that way... this way would be like using the inbound just as a trigger, I like that!</div><div dir="auto"><br></div><div dir="auto">Thanks again</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 5, 2017 15:46, "Sean Ingham" <<a href="mailto:sean@missionlabs.co.uk">sean@missionlabs.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://wiki.freeswitch.<wbr>org/wiki/Mod_commands#From_<wbr>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" target="_blank">http://www.wirex-precision.co.<wbr>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.<wbr>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_conference<wbr>" 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_answe<wbr>r=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=uu<wbr>id_transfer ${new_uuid} -bleg 9999 XML public"/> --></font></div><div><span style="font-family:monospace,monospace"> <action application="bridge" data="{hangup_after_bridge=tru<wbr>e,origination_uuid=${new_uuid}<wbr>}sofia/gateway/proxy/$1"/></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=uu<wbr>id_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_-7091853144797216974m_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" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>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>
<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>