[Asterisk-Users] Long pause between menus

Richard Lyman pchammer at dynx.net
Tue Oct 5 22:11:39 MST 2004


Scott Henderson wrote:

> I have set up an auto attendant and all is working but I am bothered 
> by a long pause when switching between menus.  This pause is between 5 
> and 7 seconds and is quite annoying.
>
> Is there anyway to address this.
>
> One other thing I find interesting is that when I move from the main 
> menu to the sub menu the delay is there but when I move from the sub 
> menu to the main menu the delay is not there.  If I repeat this action 
> within the same call the delay is consistent.
>
> A sample of the config follows:
> ====================================================
> [mainmenu]
> ;
> ; Answer the phone and play the main menu option ;
> include => default          exten => s,1,Answer
> exten => s,2,AGI(schedule.agi)
> exten => s,3,Background(fti_welcome)
> exten => s,4,Background(fti_menu_options_changed)           exten => 
> s,5,GotoIf($[${STATUS} = closed]?9:6)
> exten => s,6,GotoIf($[${STATUS} = shortday]?11:7)
> exten => s,7,GotoIf($[${STATUS} = holiday]?11:8)
> exten => s,8,GotoIf($[${STATUS} = weekend]?13:15)
> exten => s,9,Background(fti_closed_evening)    ; STATUS=closed
> exten => s,10,Goto(s,15)
> exten => s,11,Background(fti_closed_holiday)   ; STATUS=holiday, shortday
> exten => s,12,Goto(s,15)
> exten => s,13,Background(fti_closed_weekend)   ; STATUS=weekend
> exten => s,14,Goto(s,15)
> exten => s,15,Background(fti_menu_main)         ; Main menu
> exten => 1,1,Goto(chillywall,s,1)               ; Goto ChillyWall menu
> exten => 2,1,Goto(networkeng,s,1)               ; Goto Network 
> Engineering menu
> exten => 3,1,Goto(ftidoe,s,1)                   ; Goto FTIDOE Menu
> exten => 4,1,Goto(customerservice,s,1)          ; Goto Customer 
> Service menu
> exten => 8,1,Directory(default,default)         ; Dial by name
> exten => 9,1,Goto(dialextension,s,1)            ; Enter an extension
> exten => *,1,Goto(mainmenu,s,4)                 ; Repeat
> exten => #,1,Goto(6000,1)                       ; Voice Mail System
> ;
>
> [chillywall]
> ; Main menu option 1
> include => default
> exten => s,1,Background(fti_menu_chillywall)
> exten => 1,1,Goto(6102,1)               ; Sales
> exten => 2,1,Voicemail(u6205)           ; Support
> exten => *,1,Goto(chillywall,s,1)       ; Repeat
> exten => #,1,Goto(mainmenu,s,15)        ; Main Menu
>
> [networkeng]
> ; Main menu option 2
> include => default
> exten => s,1,Background(fti_menu_net_engineering)
> exten => 1,1,Goto(6102,1)               ; Sales
> exten => 2,1,Goto(6101,1)               ; Support
> exten => *,1,Goto(networkeng,s,1)       ; Repeat
> exten => s,7,GotoIf($[${STATUS} = holiday]?11:8)
> exten => s,8,GotoIf($[${STATUS} = weekend]?13:15)
> exten => s,9,Background(fti_closed_evening)    ; STATUS=closed
> exten => s,10,Goto(s,15)
> exten => s,11,Background(fti_closed_holiday)   ; STATUS=holiday, shortday
> exten => s,12,Goto(s,15)
> exten => s,13,Background(fti_closed_weekend)   ; STATUS=weekend
> exten => s,14,Goto(s,15)
> exten => s,15,Background(fti_menu_main)         ; Main menu
> exten => 1,1,Goto(chillywall,s,1)               ; Goto ChillyWall menu
> exten => 2,1,Goto(networkeng,s,1)               ; Goto Network 
> Engineering menu
> exten => 3,1,Goto(ftidoe,s,1)                   ; Goto FTIDOE Menu
> exten => 4,1,Goto(customerservice,s,1)          ; Goto Customer 
> Service menu
> exten => 8,1,Directory(default,default)         ; Dial by name
> exten => 9,1,Goto(dialextension,s,1)            ; Enter an extension
> exten => *,1,Goto(mainmenu,s,4)                 ; Repeat
> exten => #,1,Goto(6000,1)                       ; Voice Mail System
> ;

i've found that (by watching the console) if i don't have 'fallthru' 
extensions like i,o,t,etc (especially 't'), that it can take a few 
seconds to kick into the next (default 's') setting. wereas, if you had 
the 't' extension, it fails over immediately.

food for thought.




More information about the asterisk-users mailing list