[Asterisk-Users] Re: WaitExten substitute

John Todd jtodd at loligo.com
Sat Jun 19 08:48:19 MST 2004


At 6:47 AM -0700 on 6/19/04, Randy Bush wrote:
>  > I never heard of the app WaitExten
>
><http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20WaitExten>
>
>>  but you could do the following:
>>  exten => _.,1,DigitTimeout,5
>>  exten => _.,2,ResponseTimeout,10
>>  exten => _.,3,SetVar(areacode=666)
>>  exten => _.,4,Background(zz-in-who)
>>  include => extensions
>>  include => applications
>>  include => speeddials
>>  exten => i,1,PlayBack(Invalid-Ext)
>>  exten => i,2,HangUp
>>  exten => t,1,PlayBack(NoExtensionEntered)
>>  exten => t,2,Hangup
>
>yes, i could; and i did.  problem is that it does not seem to
>work; hence my posting.  it plays the background and then falls
>through to invalid on the first keypress.
>
>i suspect this may be a sipura config issue again causing a
>double invite; but i am not sure.
>
>>>  how do i hack this?
>>  Don't, I suggest you read the handbook, the wiki, and/or the
>>  archives.
>
>been there.  done that.  but thanks for the pointers.
>
>[ btw, search function in wiki is not real great, to be polite;
>   but that issue is not local to this wiki ]
>
>randy


I would suggest never using "_." anywhere, since that matches "i", 
"t", "h", and a host of other "special" extensions that are used 
internally in Asterisk's dialplan, which will result in unexpected 
extension handling.
   In many cases, the match "_X." is what you want, since that matches 
at least one _digit_ and then any number of other digits.  If that 
isn't quite what you want, then a combination of "_X" and "_X." might 
work in some cascading fashion.

   This may not solve the problem you're having, but is a good 
syntax/logic habit to develop when creating complex dialplans.

JT



More information about the asterisk-users mailing list