[Asterisk-Users] WaitExten substitute

Adam Goryachev mailinglists at websitemanagers.com.au
Fri Jun 18 23:41:47 MST 2004


On Sat, 2004-06-19 at 14:10, Randy Bush wrote:
> i am using the freebsd port, which seems to not yet have WaitExten(),
> which i kinda want to use thusly
> 
>     [ext-666]
>     exten => _.,1,SetVar(areacode=666)
>     exten => _.,2,Background(zz-in-who)  ; give them list of extns
>     exten => _.,3,WaitExten(10)          ; let them enter extn to call
>     include => extensions
>     include => applications
>     include => speeddials
>     exten => i,1,HangUp
>     exten => t,1,HangUp

I never heard of the app WaitExten 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

> how do i hack this?

Don't, I suggest you read the handbook, the wiki, and/or the archives.

Regards,
Adam





More information about the asterisk-users mailing list