<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hey all!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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. This is the dial plan I have now…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>exten => 1820,1,Macro(user-callerid,)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Answer<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,ExecIf($["${QUEUEWAIT}" = ""]?Set(__QUEUEWAIT=${EPOCH}))<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__BLKVM_BASE=${EXTEN})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,UserEvent(QueueAlert,CallerID: ${CALLERID(number)},Queue: ${EXTEN},UniqueID: ${UNIQUEID},Channel: ${CHANNEL})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]?Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)U(ackcall^s^1)))<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__NODEST=${EXTEN})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,GotoIf($["foo${RGPREFIX}" = "foo"]?REPCID)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,GotoIf($["${RGPREFIX}" != "${CALLERID(name):0:${LEN(${RGPREFIX})}}"]?REPCID)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Noop(Current RGPREFIX is ${RGPREFIX}....stripping from Caller ID)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(CALLERID(name)=${CALLERID(name):${LEN(${RGPREFIX})}})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(_RGPREFIX=)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n(REPCID),Noop(CALLERID(name) is ${CALLERID(name)})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(_RGPREFIX=IT HD:)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(CALLERID(name)=${RGPREFIX}${CALLERID(name)})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__CWIGNORE=TRUE)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Queue(1820,t,,)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__NODEST=)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Set(__CWIGNORE=)<o:p></o:p></p><p class=MsoNormal>exten => 1820,n,Goto()<o:p></o:p></p><p class=MsoNormal>exten => 1820*,1,Macro(agent-add,1820,1739)<o:p></o:p></p><p class=MsoNormal>exten => 1820**,1,Macro(agent-del,1820)<o:p></o:p></p><p class=MsoNormal>exten => *451820,1,Set(QUEUENO=1820)<o:p></o:p></p><p class=MsoNormal>exten => *451820,n,Goto(app-queue-toggle,s,start)<o:p></o:p></p><p class=MsoNormal>exten => h,1,Macro(hangupcall,)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance everyone!<o:p></o:p></p><p class=MsoNormal>Louis<o:p></o:p></p></div></body></html>