Thank you<div><br></div><div>as it happens I am using <meta http-equiv="content-type" content="text/html; charset=utf-8">bgapi originate via an XMLRPC call anyway... I'll look into the BACKGROUND_JOB event and mod_xml_cdr<br>
<br><div class="gmail_quote">On 11 March 2011 21:38, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Fri, Mar 11, 2011 at 1:04 AM, Pete Kelly <span dir="ltr"><<a href="mailto:pkelly@gmail.com" target="_blank">pkelly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote">On 25 February 2011 01:04, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
early media<br>
if you want after answer do<br>
<br>
originate {ignore_early_media=true}sofia/gateway/blabla/9999999999 &app(hahaha)<br></blockquote><div><br></div><div>Is there any way to get the app launched even earlier? I need to be able to act upon a 4XX/5XX class response to the INVITE within the app.</div>
</div></blockquote><div><br></div></div><div>The originate API does not work that way. The &app(foo) won't be executed unless the originate is successful. If you get a 4xx/5xx then the originate will fail and &app(foo) won't ever get executed. There is no notion of "execute_on_fail" since a failed call means there is no channel/session to send through the dialplan or through an application.</div>
<div><br></div><div>Depending on exactly what you're doing you probably need to be using "bgapi originate ..." and then checking the BACKGROUND_JOB event to see what happened. Alternatively you could be listening/watching for CDRs and then acting upon them. Alternatively using mod_xml_cdr is an easy way to receive notification of failed calls. The channel variable "proto_specific_hangup_cause" will have the "SIP:4xx" value, and you can react to it accordingly.</div>
<div><br></div><div>-MC</div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>