[asterisk-users] DTMF input while waiting in queue...

Sherwood McGowan sherwood.mcgowan at gmail.com
Mon Mar 28 10:07:10 CDT 2011


On 3/28/2011 7:54 AM, Louis Carreiro wrote:
>
> Hey all!
>
> I’m trying to figure out how to have a queue accept an inbound
> caller’s key press to action on. At first I’m just trying to implement
> a “Press 1 to leave a voice mail” announced and at any time in the
> queue, the user can press 1 and go to the queue’s voicemail. Later I’d
> like to have it accept “Press 1 if this is an x issue, press 2 if this
> a y problem” and I’ll have UserEvent’s generated for the press.
>
*snip*

In your queues.conf, in the definition for 1820, add the following:

context=queue1820-exit

Then, in your dialplan create a new context:

[queue1820-exit]
exten => 1,1,Noop(Caller Pressed 1 to leave a voicemail)
exten => 1,n,Voicemail(<voicemailbox>,<theoptionsyouwant>)
exten => 1,n,Hangup


That should get you started...Read about the "context" configuration
option here:
http://www.voip-info.org/wiki/view/Asterisk+config+queues.conf

Cheers!

-- 
Sherwood McGowan <sherwood.mcgowan at gmail.com>
Carrier, ITSP, Call Center, and PBX Solutions Consultant




More information about the asterisk-users mailing list