How about using 'execute_on_media=transfer xxx XML default' to handle the case where the call does ring and then having the unsuccessful call just continue on in the current dialplan extension? You can make the assumption that if the call is transferred then you had ringing (media) but if the call is not transferred then you know it never rang at the far end.<br>
<br>-MC<br><br><div class="gmail_quote">On Fri, Sep 24, 2010 at 8:20 PM, Tim St. Pierre <span dir="ltr"><<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hopefully, but there is a possibility that none of the legs rang.<br>
<br>
Here's my scenario -<br>
<br>
We ring a group of phones at a customer site, but their Internet connection is down, or the power is<br>
out, or something has happened that takes out all the phones in the group. Instead of going to<br>
voice mail, we want to redirect the call to a cell phone, or to another destination.<br>
<br>
I mostly just need to know if any of the bridges got to a ringing state before the timeout or not.<br>
<br>
Thanks!<br>
<br>
-Tim<br>
<div class="im"><br>
Michael Collins wrote:<br>
> Isn't the cause always going to be the same, namely that all the legs<br>
> timed out?<br>
> -MC<br>
><br>
> On Fri, Sep 24, 2010 at 12:22 PM, Tim St. Pierre<br>
</div>> <<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a> <mailto:<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>>><br>
<div class="im">> wrote:<br>
><br>
> Anthony Minessale wrote:<br>
> > with enterprise originate, put vars you want to get set on all<br>
> > channels in <> instead of {}<br>
> > enterprise originate is another dimension of originates where each<br>
> > string between :_: delim is an entire new originate thread using all<br>
> > of the other functionality separately so each one has a dedicated {}<br>
> > area.<br>
> > <> is global to all sub originate processes<br>
><br>
> Aha! So that's what the syntax is.<br>
><br>
> What can I do about the cause code? Is there any way to use the<br>
> cause code from the first element<br>
> (or any specific element) for decision making later on?<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div class="im">> <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>
><br>
><br>
</div>> ------------------------------------------------------------------------<br>
<div><div></div><div class="h5">><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>
<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>
</div></div></blockquote></div><br>