<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I have something similar, in my case if a caller comes in I ring the inside extensions for 17 seconds, if no answer I ring for 20 more seconds and 2 cell phones at the same time, finally, if no answer go to voicemail. The diaplan has continue-on-fail set to true so if the first 17 second bridge fails it goes to the second bridge, and if that fails voicemail.</div><div><br></div><div>The difference from you is that you don't want to call the cell phone UNLESS the local extension if not registered. I would try this: put the call into one bridge command and use the "|" character between the local extension and cell phone which causes a sequential call. That way if the local extension is not available the call to it will fail and roll over to the cell phone. The snippet below is illustrates the important stuff. The difference from you is that I am calling all phones and the cell phones at the same time in the second bridge using the ":_:" (enterprise) syntax. If they are replaced by "|" the calls would be sequential (you also need to change <originate_timeout..> since <> only applies to enterprise syntax). Hope this helps a little.</div><div><br></div>I also found this... <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_8:_Check_user_is_authenticated">http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_8:_Check_user_is_authenticated</a> <div><div>Mario G</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"hangup_after_bridge=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"continue_on_fail=true"</span><span style="color: #b72800">/></span></div></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"bridge"<span style="color: #000000"> data=</span>"{originate_timeout=17}${group_call(everyone@${domain_name}+A)}"<span style="color: #b72800">/></span></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- this is needed to allow call_timeout to work after bridging to a gateway --></div><div style="color: rgb(183, 40, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"ignore_early_media=true"</span><span style="color: #b72800">/></span></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><action application="bridge" data="<originate_timeout=23,origination_caller_id_number=${caller_id_number},origination_caller_id_name=${caller_id_name}>${group_call(everyone@${domain_name}+E)}:_:sofia/gateway/${dial_gateway}/19161111111:_:sofia/gateway/${dial_gateway}/19162222222"/></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Timeout/No answer go to voicemail --></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span class="Apple-style-span" style="color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"playback"<span style="color: #000000"> data=</span>"file_string://${xxsounds}please_leave_a_message.wav!//${sayname}"<span style="color: #b72800">/></span></span></div><div style="color: rgb(183, 40, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"answer"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(42, 126, 49); "><span style="color: #000000"> </span><!-- Next line removes default greeting, we already played one above--></div><div style="color: rgb(183, 40, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: #b72800"><</span>action application=<span style="color: #9431c0">"set"</span> data=<span style="color: #9431c0">"skip_greeting=true"</span><span style="color: #b72800">/></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(148, 49, 192); "><span style="color: #000000"> </span><span style="color: #b72800"><</span><span style="color: #000000">action application=</span>"voicemail"<span style="color: #000000"> data=</span>"default ${domain_name} 100"<span style="color: #b72800">/></span></div><div style="color: rgb(183, 40, 0); "><span style="color: #b72800"><br></span></div></div></div></div><div><br><div><div>On Apr 28, 2012, at 6:46 AM, Travis Langhals wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_extra">Thanks for the info, I have the voicemail action working but if I add a second bridge command between my extension bridge and voicemail actions it rings the cell phone if the extension doesn't answer within my 20s timeout. I'm trying to make it only ring the cell phone if the extension is not online and then go to voicemail. If the extension is online it should just ring the extension and then go to voicemail.<br>
<br><div class="gmail_quote">On Fri, Apr 27, 2012 at 9:39 PM, Brian Foster <span dir="ltr"><<a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Look at the local exensions dialplan in default.xml for an example, specifically how it is forwarded on to voicemail. You could get slick and do conditions and set a param inside of the users .xml file in the directory to tell the dialplan where to try next. Also look at the call_timeout variable. </p><p>-BDF</p><div><div>
<div class="gmail_quote">On Apr 27, 2012 6:26 PM, "William King" <<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
You want to do research into the continue-on-fail and the variable
hangup after bridge. <br>
<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail</a><br>
<br>
Basically you can have multiple bridge actions in an extension and
the first to successfully bridge a call will be the last action the
call will make.<br>
<pre cols="72">William King
Senior Engineer
Quentus Technologies, INC
1037 NE 65th St Suite 273
Seattle, WA 98115
Main: <a href="tel:%28877%29%20211-9337" value="+18772119337" target="_blank">(877) 211-9337</a>
Office: <a href="tel:%28206%29%20388-4772" value="+12063884772" target="_blank">(206) 388-4772</a>
Cell: <a href="tel:%28253%29%20686-5518" value="+12536865518" target="_blank">(253) 686-5518</a>
<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a></pre>
<br>
On 04/27/2012 03:01 PM, Travis Langhals wrote:
<blockquote type="cite">Could someone please help with an example dialplan for
call failover to an external DID (i.e. cell phone or pots line) in
case the the user has a network failure can cannot be reached?<br>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div>
</div></body></html>