<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.Numbered, li.Numbered, div.Numbered
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.25in;
        margin-bottom:.0001pt;
        text-indent:-.25in;
        mso-list:l0 level1 lfo2;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:412971070;
        mso-list-type:hybrid;
        mso-list-template-ids:1618259210 -1710466462 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-style-link:Numbered;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.25in;
        mso-level-number-position:left;
        margin-left:.25in;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Paul,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I would agree with what&#8217;s been
mentioned so far about what should work </span></font><font size=2 color=navy
face=Wingdings><span style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The hangup and the hangup-after-bridge should
have worked, I would suspect (but don&#8217;t anything about) an interaction
with this statement&#8212;try removing it:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&lt;action application=&quot;sched_hangup&quot; data=&quot;+7200
alloted_timeout&quot;/&gt;<br>
<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Another thing to try: To hangup when the
bridge fails you set this back to false.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Have fun,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Robert<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=3 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> paul gore
[mailto:paul.gore.j@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, August 10, 2010
4:53 AM<br>
<b><span style='font-weight:bold'>To:</span></b> FreeSWITCH Users Help<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
Leg_timeout question</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I should clarify myself,
I talk about &quot;no answer&quot; scenario here, so &lt;action
application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;
wouldn't have any effect, correct?<br>
So in this case &lt;action application=&quot;hangup&quot;/&gt; I assume should
properly hangup the call, but it does not.<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mon, Aug 9, 2010 at 10:53 PM, paul gore &lt;<a
href="mailto:paul.gore.j@gmail.com">paul.gore.j@gmail.com</a>&gt; wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Thank you, that worked!<br>
<br>
But I have another problem now. If I don't want to forward to voice mail at the
end, but just hangup, it does not work - call repeats 3 times and no hangup
gets send to the call originator, even with &quot;hangup&quot; action at the
end.<br>
<br>
Like this: <o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&lt;extension name=&quot;call_route_1688506814_16099860919&quot;
continue=&quot;false&quot;&gt;&lt;condition field=&quot;caller_id_number&quot;
expression=&quot;^(\d{7,20})$&quot;/&gt;<br>
&lt;condition field=&quot;destination_number&quot;
expression=&quot;^(call_route_16099860919)$&quot;&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;hangup_after_bridge=true&quot;/&gt;<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&lt;action application=&quot;set&quot;
data=&quot;continue_on_fail=true&quot;/&gt;<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
&lt;action application=&quot;set&quot;
data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;sched_hangup&quot; data=&quot;+7200
alloted_timeout&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;transfer_ringback=${us-ring}&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;ringback=${us-ring}&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot;
data=&quot;[leg_timeout=20]sofia/internal/1002%${domain_name},[leg_timeout=25]sofia/internal/1003%${domain_name}&quot;/&gt;<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&lt;action
application=&quot;hangup&quot;/&gt;<br>
&lt;/condition&gt;&lt;/extension&gt;<br>
<br>
Is this fixable?<br>
<br>
<o:p></o:p></span></font></p>

<div>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mon, Aug 9, 2010 at 11:46 AM, Robert Hadley &lt;<a
href="mailto:robert.hadley@teotech.com" target="_blank">robert.hadley@teotech.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

</div>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<div link=blue vlink=purple>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'>Try </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&lt;action
application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<o:p></o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=3 width="100%" align=center>

</span></font></div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:
bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'> paul gore [mailto:<a
href="mailto:paul.gore.j@gmail.com" target="_blank">paul.gore.j@gmail.com</a>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Sunday, August 08, 2010 7:39
PM<br>
<b><span style='font-weight:bold'>To:</span></b> FreeSWITCH Users Help<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Freeswitch-users]
Leg_timeout question</span></font><o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi there,<br>
I am trying to accomplish a pretty simple thing in FS dialplan - ring one or
multiple destinations with individual timeout per destination, if nobody
answers - forward to a voicemail.<br>
Here is dial plan I use:<br>
<br>
&lt;extension name=&quot;call_route_1688506814_16099860919&quot;
continue=&quot;false&quot;&gt;&lt;condition field=&quot;caller_id_number&quot;
expression=&quot;^(\d{7,20})$&quot;/&gt;<br>
&lt;condition field=&quot;destination_number&quot;
expression=&quot;^(call_route_16099860919)$&quot;&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;continue_on_fail=false&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;ignore_early_media=true&quot;/&gt;<br>
&lt;action application=&quot;sched_hangup&quot; data=&quot;+7200
alloted_timeout&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;transfer_ringback=${us-ring}&quot;/&gt;<br>
&lt;action application=&quot;set&quot;
data=&quot;ringback=${us-ring}&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;[leg_timeout=20]sofia/internal/1002%${domain_name},[leg_timeout=25]sofia/internal/1003%${domain_name}&quot;/&gt;<br>
&lt;action application=&quot;sleep&quot; data=&quot;500&quot;/&gt;&lt;action
application=&quot;set&quot;
data=&quot;voicemail_greeting_number=1&quot;/&gt;&lt;action
application=&quot;voicemail&quot; data=&quot;default $${domain}
1002&quot;/&gt;&lt;/condition&gt;&lt;/extension&gt;<br>
<br>
What happens is incoming call from my provider rings ext 1002, but instead of
going to the VM after 20 sec and no answer FS sends 602 (alloted_timeout) and
the ring repeats again and so 3 times, after which call dies. But never goes to
voice mail.<br>
What I am doing wrong?<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>_______________________________________________<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><o:p></o:p></span></font></p>

</blockquote>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>