[asterisk-users] include statements in IVR
Thomas Perron
thomas.perron at gmail.com
Sun Nov 1 20:40:38 CST 2009
I want to match specific contexts to menus.
If users dial a number (example: 17034444444) then start with context
big10-IVR
If users dial a number (example: 15674442222) then start with context
cleveland-IVR
It is not working. I have played with the include statements and am close
but no cigar.
Here is a part of my config. Please send comments. Thank you
[default]
;include => stdexten
include => big10-IVR
include => cleveland-IVR
exten => _1703XXXXXXX,1,Goto(big10-IVR,s,1)
exten => _1567XXXXXXX,1,Goto(cleveland-IVR,s,1)
[big10-IVR]
exten => s,1,Answer()
exten => s,n,Background(dir-welcome)
;exten => s,n,WaitExten(1)
;exten => s,n,Background(astcc-please-enter-your)
;exten => s,n,Background(zip-code)
;exten => s,n,Wait(7)
exten => s,n,Background(washington-dc)
;exten => s,n,Authenticate(2222,a)
;exten => s,n,Background(pin-number-accepted)
exten => s,n,Playback(queue-thankyou)
exten => s,n,Background(ginger110109)
[cleveland-IVR]
exten => s,1,Answer()
exten => s,n,Background(dir-welcome)
exten => s,n,WaitExten(1)
exten => s,n,Background(astcc-please-enter-your)
exten => s,n,Background(zip-code)
exten => s,n,Wait(7)
exten => s,n,Background(washington-dc)
exten => s,n,Authenticate(2222,a)
exten => s,n,Background(pin-number-accepted)
exten => s,n,Playback(queue-thankyou)
exten => s,n,Background(ginger110109)
exten => s,n,Hangup()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091101/82673477/attachment.htm
More information about the asterisk-users
mailing list