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?
On Sat, 2003-12-20 at 21:06, Rich Adamson wrote:> 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?Well do you have a 3 extension in the npi-directory or any othe context being included? Posting more of your current extensions.conf file would help. Basically what you provided was much help as it isn't where you are in the dialplan when your problems occur, nor have you included the text from the console which will tell you where asterisk was trying to go. -- Steven Critchfield <critch@basesys.com>
Rich, This plays into your current question and the previous one. The 's' in the dial plan basically applies to an inbound call that was answered by *. If I remember correctly, the 't' stands for any invalid entry or a timeout waiting for DTMF digits, and I have no idea what the 'h' stands for. What you are doing below with Extension 620 will only come into play IF extension 620 is dialed. If you want your menu to apply for all inbound callers, you need to use 's' as the extension as in the previous example that I sent you. The menu system is usually applied to Zap calls to the *. The caller (usually an outside caller) is greeted with your Auto-Attendant greeting, and then a menu of choices like "dial 1 for support; dial 2 for sales; dial 0 for the operator, etc..." Usually, if you want to provide an option to dial a specific (known) extension, you would prompt the caller to press a digit (9 for example) and then the extension; otherwise, if your default extensions begin with '3', you would NOT use the digit '3' as a menu option so that dialing an extension would automatically be routed to that extension rather than the menu option for '3'. You might need to crank up the 'DigitTimeout' to a greater value in order to receive all dialed digits for a specific extension. Call me tomorrow (Sunday) and we can discuss this... Joe -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Rich Adamson Sent: Saturday, December 20, 2003 9:07 PM 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@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/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@lists.digium.com [mailto:asterisk-users-admin@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@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users