Thanks for you reply :).<br><br>I thought of that and tried replacing _X with a numbers it should match (9), and it didn&#39;t work. It still times out as if no number was entered.<br><br><br><br><br><div class="gmail_quote">
On Wed, Aug 18, 2010 at 2:11 PM, Danny Nicholas <span dir="ltr">&lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <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></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal"></p><div class="im"><font size="3" color="navy" face="Times New Roman"><span style="font-size: 12pt; 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>
</div><font color="navy"><span style="color: navy;">&lt;snip&gt;</span></font><div class="im"><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;"></span></font></div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">My best guess is that your problem is that
_X isn’t happy for whatever reason.  Generally I use Waitexten for single
digit processing like this</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; 1234,1,goto(waitdtmf,s,1)</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">[waitdtmf]</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; s,1,background(hello-world)</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; s,n,waitexten(7)</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; 1,1,AGI(myAGI.php)</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; 2,1,AGI(myAGI.php)</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Exten =&gt; I,1,playback(invalid)</span></font></p>

</div>

</div>


<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>