[Asterisk-Users] Delay after entering digits with IVR

Richard J. Sears rsears at americanIS.net
Fri Feb 25 06:26:55 MST 2005


You were correct Steven - I was picking up the extensions from an
include after a jump !!

Lesson Learned - thanks everyone.


On Thu, 24 Feb 2005 20:18:22 -0600
Steven Critchfield <critch at basesys.com> wrote:

> On Thu, 2005-02-24 at 15:49 -0800, Richard J. Sears wrote:
> > I have a [start] context that all my inbound and '0' calls are routed
> > into.
> > 
> > Because of the way I want to set my system up, I want to prompt the user
> > to enter a 1 if they know the extension, or a 2 for a directory and
> > nothing else.
> > 
> > It works, however there is a 5 to 10 second delay after enter the 1 or 2
> > before the system responds.
> > 
> > I have read over the wiki on how asterisk handles digit inputs, but
> > cannot seem to isolate the problem. No other extension beginning with 
> > (or even including) a '1' or a '2'.
> > 
> > Is this just how the system operates, or am I missing something..?
> 
> If That is the entirety of your start context, then it shouldn't be
> doing any delay between detection and beginning action. 
> 
> So my question is, is it possible that the delay is actually in the next
> step such as the goto that jumps out to a different extension and
> context or in the starting of the directory app.
> 
> > Here is the [start] in my extensions.conf :
> > 
> > [start]
> > ; If someone dials the Operator, just start them here.
> > exten => 0,1,Goto(s,1)
> > 
> > exten => s,1,Wait,1                     ; Wait a second, just for fun
> > exten => s,2,Answer                     ; Answer the line
> > exten => s,3,SetMusicOnHold,default
> > exten => s,4,ResponseTimeout,5         ; Set Response Timeout
> > 
> > ; Is is Morning, Afternoon or Evening ?
> > ; Lets play a differnet greeting for each time period.
> > exten => s,5,AGI(openclose.agi)
> > exten => s,6,GotoIF($[${STATUS} = morning]?10)
> > exten => s,7,GotoIF($[${STATUS} = afternoon]?12)
> > exten => s,8,GotoIF($[${STATUS} = evening]?14)
> > extex => s,9,Goto(s,6)
> > 
> > ; The various Greetings based on Time of Day
> > exten => s,10,Background(rjs-morning-welcome)
> > exten => s,11,Goto(s,15)
> > exten => s,12,Background(rjs-afternoon-welcome)
> > exten => s,13,Goto(s,15)
> > exten => s,14,Background(rjs-evening-welcome)
> > 
> > ; The Voice Menu
> > exten => s,15,Background(rjs-if-you-know-the-extension)
> > exten => s,16,Wait,1
> > exten => s,17,BackGround(to-dial-by-name-press)  ; Play some instructions
> > exten => s,18,BackGround(digits/2)  ; Play some instructions
> > 
> > ; A timeout and "invalid extension rule"
> > ;
> > exten => t,1,Goto(s,15)                  ; If they take too long, give up
> > exten => i,1,Playback(invalid)          ; "That's not valid, try again"
> > 
> > ; If they know the extension, send them on.
> > exten => 1,1,Goto(extension_is_known,s,1)
> > 
> > ; Allow users the ability to get Directory listing (user must be in voicemail.conf)
> > exten => 2,1,Directory,default|internal_extensions
> > 
> 
> -- 
> Steven Critchfield <critch at basesys.com>
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


******************************************
Richard J. Sears
Vice President         
American Internet Services                          
----------------------------------------------------
rsears at adnc.com
http://www.adnc.com
----------------------------------------------------
858.576.4272 - Phone
858.427.2401 - Fax
INOC-DBA - 6130
----------------------------------------------------

I fly because it releases my mind 
from the tyranny of petty things . . 


"Work like you don't need the money, love like you've
never been hurt and dance like you do when nobody's
watching."




More information about the asterisk-users mailing list