<html 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)">
<style>
<!--
 /* Font Definitions */
 @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:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

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

<div class=Section1>

<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>Kathryn Jones<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users]
WaitExten() always times out</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=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'>&gt;</span></font>Hi,<br>
<br>
<font color=navy><span style='color:navy'>&gt;</span></font>My WaitExten() is
not working as I expect it to. This is the relevant part of my context. It is
meant to receive incoming calls.<br>
<br>
<font color=navy><span style='color:navy'>&gt;</span></font>[incoming]<br>
<font color=navy><span style='color:navy'>&gt;</span></font>exten =&gt;
xxx,1,Background(hello-world)<br>
<font color=navy><span style='color:navy'>&gt;</span></font>exten =&gt;
xxx,2,WaitExten(7)<br>
<br>
<font color=navy><span style='color:navy'>&gt;</span></font>exten =&gt;
_X,1,AGI(myAGI.php)<br>
<br>
<font color=navy><span style='color:navy'>&gt;</span></font>When I send the
call from a .call, it works perfect, but when receiving an incoming call
WaitExten() times out no matter what.<br>
<font color=navy><span style='color:navy'>&lt;snip&gt;</span></font><br>
<font color=navy><span style='color:navy'>&gt;</span></font>I experimented
changing autofallthrough to no and got the same result. Any ideas about this
strange behavior? <font color=navy><span style='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'>My best guess is that your problem is that
_X isn&#8217;t happy for whatever reason.&nbsp; Generally I use Waitexten for single
digit processing like this<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'>Exten =&gt; 1234,1,goto(waitdtmf,s,1)<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'>[waitdtmf]<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'>Exten =&gt; s,1,background(hello-world)<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'>Exten =&gt; s,n,waitexten(7)<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'>Exten =&gt; 1,1,AGI(myAGI.php)<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'>Exten =&gt; 2,1,AGI(myAGI.php)<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'>Exten =&gt; I,1,playback(invalid)<o:p></o:p></span></font></p>

</div>

</body>

</html>