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 <[email protected]> Carrier, ITSP, Call Center, and PBX Solutions Consultant -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
