[Asterisk-Users] ivr key press?
David J Carter
david.carter at codepipe.com
Sun Dec 21 04:09:06 MST 2003
Hi Rich,
For what it's worth her is an example of my IVR.
Hope it helps.
[mainmenu]
;
;"main menu" context with submenu
;
exten => s,1,Answer
include => default ; Main dialplan
;exten => s,2,SayDigits(${CALLERID})
exten => s,3,Background(hello_and_thank_you)
exten => s,4,Wait,t,2
exten => s,5,Goto(options,s,1)
;
[options]
;
exten => s,1,Background(double_glazing)
exten => s,2,SayDigits(444)
exten => s,3,Background(now)
exten => s,4,Background(kitchen_sales)
exten => s,5,SayDigits(555)
exten => s,6,Background(now)
exten => s,7,Background(insurance_sales)
exten => s,8,SayDigits(666)
exten => s,9,Background(now)
;
include => default ; Main dialplan for other extensions
;
exten => 444,1,Goto(glazing,s,1)
exten => 444,2,Hangup
;
exten => 555,1,Goto(kitchen,s,1)
exten => 555,2,Hangup
;
exten => 666,1,Goto(insurance,s,1)
exten => 666,2,Hangup
;
[glazing]
exten => s,1,Background(glazing_thanks)
exten => s,2,MusicOnHold(default)
exten => s,3,Background(sorry_for_delay)
exten => s,4,Goto(s,2)
exten => s,5,Hangup
;
[kitchens]
exten => s,1,Background(kitchen_thanks)
exten => s,2,MusicOnHold(default)
exten => s,3,Background(sorry_for_delay)
exten => s,4,Goto(s,2)
exten => s,5,Hangup
;
[insurance]
exten => s,1,Background(insurance_thanks)
exten => s,2,MusicOnHold(default)
exten => s,3,Background(sorry_for_delay)
exten => s,4,Goto(s,2)
exten => s,5,Hangup
;
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Rich Adamson
Sent: 21 December 2003 03:07
To: Asterisk-a-users-list
Subject: [Asterisk-Users] ivr key press?
I'm testing an ivr implementation (first time) using:
exten => 620,1,Wait,1
exten => 620,2,Answer
exten => 620,3,DigitTimeout,5
exten => 620,4,ResponseTimeout,10
exten => 620,5,Background(npi-greeting) ; "Thanks for calling press 1 for"
exten => 1,1,Goto(npi-directory,s,1)
For initial testing, I've arbitrarily mapped this onto ext 620 (will
change that later when things are working as expected).
The initial "npi-greeting" message essentially says "...if you know
your party's extension, you can dial it at any time. Press 1 for
Sales, etc."
If during this initial greeting I press 3000 (which is a valid extn),
I can only press the first "3" before I get kicked out (I can't dial
the full 3000).
Am I supposed to be setting this up to expect only single-digit
key presses (instead of 3000), or am I missing something that would
suggest waiting for four key presses?
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list