<div dir="ltr">1) It&#39;s an option that defaults to false. See: <a href="http://wiki.freeswitch.org/wiki/Variable_hangup_after_bridge">http://wiki.freeswitch.org/wiki/Variable_hangup_after_bridge</a><div>2) Same, it&#39;s an option that default to &quot;don&#39;t continue on error&quot; To change, see: <a href="http://wiki.freeswitch.org/wiki/Variable_continue_on_fail">http://wiki.freeswitch.org/wiki/Variable_continue_on_fail</a></div>

<div><br></div><div>I&#39;m pretty sure these are both in the default configurations. Did you take a look at them? They are pretty good example of many of the most common use cases.</div><div><br></div><div><br><div dir="ltr">

<span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 5:54 AM, Sean Devoy <span dir="ltr">&lt;<a href="mailto:sdevoy@bizfocused.com">sdevoy@bizfocused.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">I have a couple of questions regarding XML dialplan functionality.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">First, using this simple dial plan:<u></u><u></u></p><p class="MsoNormal" style="text-autospace:none">

<span style="font-size:9.5pt;font-family:Consolas;color:blue">  &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">extension</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">name</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">220</span>&quot;<span style="color:blue"> &gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">    &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">condition</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">field</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">destination_number</span>&quot;<span style="color:blue"> </span><span style="color:red">expression</span><span style="color:blue">=</span>&quot;<span style="color:blue">^220$</span>&quot;<span style="color:blue">&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">set</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">effective_caller_id_number=${internal_caller_id_number}</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">set</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">effective_caller_id_name=${internal_caller_id_name}</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">set</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">ringback=${us-ring}</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">set</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">call_timeout=20</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">bridge</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">sofia/external/220%<a href="http://mydomainname.com" target="_blank">mydomainname.com</a></span>&quot;<span style="color:blue">/&gt;  </span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">answer</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">voicemail</span>&quot;<span style="color:blue"> </span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">default voicemail_BFIS 220</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">      &lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue"> </span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">hangup</span>&quot;<span style="color:blue">/&gt;</span><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">    &lt;/</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">condition</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">&gt;</span><span style="font-size:9.5pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">  &lt;/</span><span style="font-size:9.5pt;font-family:Consolas;color:#a31515">extension</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">&gt;</span><span style="font-size:9.5pt;font-family:Consolas"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">I can call 220, if there is no answer it goes to voicemail.  GOOD.<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">However, if that user answers and then hangs up, I still go to voice mail. I thought bridge terminated the call.<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">Question 1: Why does the dial plan continue to voicemail after bridge answers, talks and hangs up?<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas">Question 2: If this user’s phone is unplugged, the bridge kicks an error and it DOES NOT go to voice mail.  How can I detect “extension unavailable” in the dial plan and perhaps forward to a cell phone?<u></u><u></u></span></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks in advance,<u></u><u></u></p><p class="MsoNormal">Sean<u></u><u></u></p></div></div><br>_________________________________________________________________________<br>


Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">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">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></div>