[asterisk-users] WaitExten() always times out

Kathryn Jones kathrynster at gmail.com
Wed Aug 18 15:39:54 CDT 2010


Thanks for you reply :).

I thought of that and tried replacing _X with a numbers it should match (9),
and it didn't work. It still times out as if no number was entered.




On Wed, Aug 18, 2010 at 2:11 PM, Danny Nicholas <danny at debsinc.com> wrote:

>   *From:* asterisk-users-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at lists.digium.com] *On Behalf Of *Kathryn Jones
> *Subject:* [asterisk-users] WaitExten() always times out
>
>
>
> >Hi,
>
> >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.
>
> >[incoming]
> >exten => xxx,1,Background(hello-world)
> >exten => xxx,2,WaitExten(7)
>
> >exten => _X,1,AGI(myAGI.php)
>
> >When I send the call from a .call, it works perfect, but when receiving
> an incoming call WaitExten() times out no matter what.
> <snip>
>
> >I experimented changing autofallthrough to no and got the same result.
> Any ideas about this strange behavior?
>
>
>
> 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
>
> Exten => 1234,1,goto(waitdtmf,s,1)
>
>
>
> [waitdtmf]
>
> Exten => s,1,background(hello-world)
>
> Exten => s,n,waitexten(7)
>
> Exten => 1,1,AGI(myAGI.php)
>
> Exten => 2,1,AGI(myAGI.php)
>
> Exten => I,1,playback(invalid)
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100818/1a9c30bd/attachment.htm 


More information about the asterisk-users mailing list