<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,origination_caller_id_name='+xxxxx',origination_caller_id_number=+xxxxxx,call_ref='xxxxxxx',bCallerIDName='+xxxxxxx',bCallerID='+xxxxxx',bnumber='+xxxxxxx'}sofia/gateway/siplb-01/+xxxxx|sofia/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_name=${bCallerIDName},origination_caller_id_number=${bCallerID}}sofia/gateway/${default_provider}/${bnumber}|sofia/gateway/${secondary_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>