[Asterisk-Users] Can I get to a menu system while in a queue??
Chuck Bunn
chuck.bunn at networkdoc.com
Fri Dec 2 12:53:32 MST 2005
Hi,
Is it possible to get to a menu system while in a call queue. I want
users to be able to hit the '*' and be able to goto a menu system from a
queue if they so desire. I thought the following would do this but no
dice...
*****************
extension.conf
[general]
#include macros.incl
#include incoming-home.incl
#include extensions-home.incl
#include phrase.incl
#include menu.incl
#include outgoing.incl
[globals]
OUTBOUNDTRUNK=Zap/g1
PSTN1=Zap/1
PSTN2=Zap/2
PHONE1=Zap/3
PHONE2=Zap/4
*********************
incoming-home.incl
[incoming-home]
exten => s,1,Goto(extensions-home,s,1)
exten => t,1,Goto(extensions-home,s,1)
exten => i,1,Goto(extensions-home,s,1)
**********************
extensions-home.incl
[extensions-home]
;Operator queue, Operator Console, and Receptionist Phone
exten => s,1,Answer()
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Queue(extensions-home|tr|||20)
exten => s,5,Goto(mainmenu,s,1)
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => i,1,Goto(mainmenu,s,1)
exten => t,1,Goto(mainmenu,s,1)
;Office Personnel
exten => _30[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _31[0-4],1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _399,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _40[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _499,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
;Spa Personnel
exten => _500,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _51[0-2],1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
exten => _590,1,Macro(novmail,${EXTEN},ZAP/3)
;Voicemail Main
exten => 800,1,Answer
exten => 800,2,VoicemailMain
;Agent Login
exten => 801,1,AgentCallbackLogin(||@extensions-home)
;Recording Interface
exten => 820,1,Goto(phrase-menu,s,1)
;Voice Conferencing;
exten => _85X,1,Answer
exten => _85X,2,MeetMe(${EXTEN})
********************
menu.incl
[mainmenu]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Background(custom/welcome-main)
exten => 1,1,Goto(spa,s,1)
exten => 2,1,Goto(ageless,s,1)
exten => 3,1,Goto(dialbyext,s,1)
exten => 4,1,Directory(extensions-home,extensions-home,f) ;search by
first name
exten => 5,1,Directory(extensions-home,extensions-home) ;search by last name
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => t,1,Goto(s,1,1)
exten => i,1,Goto(s,1,1)
[operator]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Macro(stdexten,300,SIP/300)
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => t,1,Goto(operator,s,1)
exten => i,1,Goto(operator,s,1)
[spa]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Macro(stdexten,500,SIP/500)
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => t,1,Goto(spa,s,1)
exten => i,1,Goto(spa,s,1)
[ageless]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Macro(stdexten,300,SIP/300)
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => t,1,Goto(ageless,s,1)
exten => i,1,Goto(ageless,s,1)
[dialbyext]
exten => s,1,Answer
exten => s,2,DigitTimeout(5)
exten => s,3,ResponseTimeout(15)
exten => s,4,Background(ext-or-zero)
exten => 0,1,Goto(operator,s,1)
exten => *,1,Goto(mainmenu,s,1)
exten => t,1,Playback(please-try-again)
exten => t,2,Goto(dialbyext,s,1)
exten => i,1,Playback(num-not-in-db)
exten => i,1,Goto(dialbyext,s,1)
include => extensions-home
********************
Thanks
More information about the asterisk-users
mailing list