[asterisk-users] GotoIf() on Auto-Attendant
GNUbie
gnubie at gmail.com
Sat Jan 26 10:29:35 CST 2008
Hello all,
I'm planning to create a simple Auto-Attendant (IVR Menu) for my home PBX
yet all callers from incoming (trunk) calls must only press the extension
numbers from the [analog-ext] else will play the "pbx-invalid". How do you
do that using the GotoIf() (or probably using the other applications) but
will check if the numbers entered belongs to a specific context?
Also, how do you implement a condition in your AA context when you want that
the 3rd time a caller presses an invalid extension number, it will play a
"vm-goodbye" and hangup?
Below is a snippet of my dialplan:
- - - < s n i p > - - -
[aa_menu]
exten => 0,1,Answer()
exten => 0,2,Background(greetings)
exten => 0,n,WaitExten()
exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(aa_menu,0,2)
exten => i,n,Hangup(3)
exten => t,1,Goto(analog-ext,11,1)
exten => t,n,Hangup(3)
[incoming]
...
...
[analog-ext]
...
...
[sip-ext]
...
...
[other-ext]
...
...
- - - < s n i p > - - -
Please advice.
Thank you in advance.
Regards,
GNUbie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080127/ae59c25f/attachment.htm
More information about the asterisk-users
mailing list