<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" 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_answer=transfer -bleg 9999@public"/></font></div><div><font face="monospace, monospace"> <action application="bridge" data="sofia/gateway/proxy/$1"/></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/4345412121] has been answered</font></div><div><font face="monospace, monospace">EXECUTE sofia/external/4345412121 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">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">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=uuid_transfer ${new_uuid} -bleg 9999 XML public"/> --></font></div><div><span style="font-family:monospace,monospace"> <action application="bridge" data="{hangup_after_bridge=true,origination_uuid=${new_uuid}}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=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="gmail_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: +34669448337</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>