[Asterisk-Users] Newbie question about pressing a key to be
connected to the caller
Jason
boy at neogemini.com
Tue Jun 14 19:18:16 MST 2005
I have a newbie question about the dialplan. I have a main menu that
picks up on a certain DID number, and gives a list of options. When an
option is selected, for instance 1 for sales, it rings a number of users
in succession until one picks up and is connected to the caller,
otherwise it goes to voicemail. This is all working well. However, I
would like to have the system play a message to the user when they pick
up, saying "There is a call for sales, press 1 to accept the call or 2
to ignore". If the user pressed 1 they would then be connected to the
person calling in, if 2 it would just go to the next person in the
group. Any help would be appreciated, my current context is below for
reference:
[ext-sales]
exten => 1,1,Answer() ;
exten => 1,2,SetCIDName(Sales) ;
exten => 1,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?ext-cs-vm,1,1)
exten => 1,4,Playback(custom/PleaseWait)
exten => 1,5,Macro(dial,${RINGTIMER},tm,717-6197585949#)
exten => 1,6,Macro(dial,${RINGTIMER},tm,707-6199208398#)
exten => 1,7,Macro(dial,${RINGTIMER},tm,8323686410#)
exten => 1,8,Macro(dial,${RINGTIMER},tm,717-6197585949#)
exten => 1,9,Macro(dial,${RINGTIMER},tm,707-6199208398#)
exten => 1,10,Macro(dial,${RINGTIMER},tm,8323686410#)
exten => 1,11,Goto(ext-sales-vm,1,1)
More information about the asterisk-users
mailing list