<div dir="ltr">Have you tried <span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">hangup_after_bridge to false?</span><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="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>
<br><div class="gmail_quote">On Fri, Sep 8, 2017 at 5:40 PM, Bayani Carbone <span dir="ltr"><<a href="mailto:rocketsbay@gmail.com" target="_blank">rocketsbay@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Hi all,</span><br><br><span>I'm using xmlrpc with php to send the originate command to freeswitch to initiate a call to leg-a. This command also specifies the dialplan in which I use the bridge command to make a call to leg-b and bridge both legs.</span><br><br><span>xmlrpc command:</span><br><span>originate {originate_timeout=120,<wbr>origination_caller_id_name='+<wbr>xxxxx',origination_caller_id_<wbr>number=+xxxxxx,call_ref='<wbr>xxxxxxx',bCallerIDName='+<wbr>xxxxxxx',bCallerID='+xxxxxx',<wbr>bnumber='+xxxxxxx'}sofia/<wbr>gateway/siplb-01/+xxxxx|sofia/<wbr>gateway/siplb-02/+xxxxxx call XML public</span><br><br><span>dialplan:</span><br><span> <extension name="public_extensions"></span><br><span> <condition field="destination_number" expression="^call$"></span><br><span> <action application="set" data="api_hangup_hook=lua eoc.lua ${call_ref}"/></span><br><span> <action application="bridge" data="{origination_caller_id_<wbr>name=${bCallerIDName},<wbr>origination_caller_id_number=$<wbr>{bCallerID}}sofia/gateway/${<wbr>default_provider}/${bnumber}|<wbr>sofia/gateway/${secondary_<wbr>provider}/${bnumber}"/></span><br><span> </condition></span><br><span> </extension></span><br><br><span>My problem is that if the originate command results in a call setup failure, I don't enter the dialplan and I can't retrieve the failure in php either.</span><br><br><span>I tried to add the following to the originate command:</span><br><span>transfer_on_fail='auto_cause error XML public'</span><br><br><span>With corresponding dialplan entry but it did not work either.</span><br><br><span>I need to be able to execute eoc.lua even on failure of leg-A.</span><br><br><span>Any help is welcome!</span><br><br><span>Thanks</span><br><br>
<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><br></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=b7482de2-3c3d-438e-bb9d-74f4b7b1daf9"><font color="#ffffff" size="1">ᐧ</font></div>