Jason
2005-Jun-14 19:18 UTC
[Asterisk-Users] Newbie question about pressing a key to be connected to the caller
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)
Jon Gabrielson
2005-Jun-14 22:53 UTC
[Asterisk-Users] Newbie question about pressing a key to be connected to the caller
Check out ackcall=yes in agents.conf It allows them to press # to accept, or press * to not accept. then you can do something like: exten => 101,1,Dial(Agent/101,20,A(presspoundtoanswer)) or if you want to get more fancy, check out queues.conf where you can set ring orders and answer penalties. Hope this helps, Jon. On Tuesday 14 June 2005 09:18 pm, Jason wrote:> 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) > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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