<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:st1="urn:schemas-microsoft-com:office:smarttags" 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]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Gill Sans MT";
        panose-1:2 11 5 2 2 1 4 2 2 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Gill Sans MT";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Gill Sans MT";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

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

<div class=Section1>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>Hi List &#8211;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>Well, not
getting anywhere, I stumped up for Digium support, and the answer is,
unfortunately, that there is currently no way of resetting the timer when the Dial
application gets a 302 message back from the SIP handset. In other words, the
behaviour exhibited below is standard (even though in my opinion it is
undesirable).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>I&#8217;ve
decided to have a crack at a patch for this myself. Will keep you posted, since
I know there are at least a couple of other people out there who have been
having this problem.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'>Mike.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Gill Sans MT"><span
style='font-size:10.0pt;font-family:"Gill Sans MT";color:blue'><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=2 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'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Mike Pollitt<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, 21 February 2006
4:03 PM<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName>'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Asterisk-Users] Dial
timeouts and SIP 302 redirects</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><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>I have SIP handsets which
allow the user to forward a call to another number after a specified interval
of ringing time. On the SwissVoice this is refered to as CFNR (Call Forward on
No Response). What actually happens is that after a specified period of time
(default 15 seconds), the handset sends back a &#8220;302 Moved
Temporarily&#8221; response to Asterisk.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>The problem is that when
Asterisk receives the 302 message, it doesn&#8217;t reset the ringing timer in
the Dial command. Let&#8217;s say I&#8217;ve issued a Dial command such as:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>exten =&gt;
_34XX,1,Dial(SIP/fred|20)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>exten =&gt;
_34XX,n,Voicemail(fred)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>What happens is that the
SIP handset rings for the default time of 15 seconds, then sends back the 302
message with the new number to forward to. Asterisk faithfully drops into the
Local context with this number, but after a further 5 seconds of ringing the
new number, the original Dial command exits and proceeds to the next priority,
namely the Voicemail command. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>The problem with this is
that the forwarded number only rings for 5 seconds (or not at all if it takes a
few seconds to actually make the new outgoing call, as can happen often with
cellphones), which is not enough time for them to answer it.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'>Has anyone else had this
problem, and is there a solution?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Gill Sans MT"><span lang=EN-AU
style='font-size:10.0pt;font-family:"Gill Sans MT"'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>