<html><head><base href="x-msg://171/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What we do is just before the call to queue we do a userevent that has the uniqueid and the channel and any other information we care about. You can hold on to this information and match it when you get the agentconnect event.<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">--&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Mar 11, 2011, at 7:21 AM, Danny Nicholas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Hoefler Text'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="EN-US" link="blue" vlink="purple"><div class="Section1" style="page: Section1; "><div><div class="MsoNormal" align="center" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; text-align: center; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; font-family: 'Times New Roman'; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "><span class="Apple-converted-space">&nbsp;</span><a href="mailto:asterisk-users-bounces@lists.digium.com" style="color: blue; text-decoration: underline; ">asterisk-users-bounces@lists.digium.com</a><span class="Apple-converted-space">&nbsp;</span>[mailto:asterisk-users-bounces@lists.digium.com]<span class="Apple-converted-space">&nbsp;</span><b><span style="font-weight: bold; ">On Behalf Of<span class="Apple-converted-space">&nbsp;</span></span></b>Louis Carreiro<br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space">&nbsp;</span>Friday, March 11, 2011 9:17 AM<br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:asterisk-users@lists.digium.com" style="color: blue; text-decoration: underline; ">asterisk-users@lists.digium.com</a><br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space">&nbsp;</span>[asterisk-users] How do you handle queues with AMI?</span></font><font size="3" face="Times New Roman"><span style="font-size: 12pt; font-family: 'Times New Roman'; "><o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">Hey all,<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">I’m in the process of writing a few applications that are going to either monitor the queue (number of calls, positions, etc) or respond to answering a queue call (if you answer, a window pops up with info about caller, hold time, etc.). I’m writing this in C# but language isn’t important. I’m not looking for a hand out on code, what I’m really interested in is theory or logic. How are other people watching the call come into the queue and watch it from there. What events are you watching?<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">I’ve already got the app to recognize the “packets” of information from the AMI so I can handle them accordingly. I know how to action off of the AgentConnect part but what I’m missing is how to tie that back into the call (Caller ID, etc.). I know the first response will be use the Uniqueid for the call but how? What are your methods for tracking it? How do you know it even entered the queue?<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">Also, as I’m writing this, if anyone would like to help out or share code I’m up for it. I’ll make my code available to all interested in doing this in C# (it’s pretty painless).<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">Thanks!<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" face="Calibri"><span style="font-size: 11pt; ">Louis<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">If you look through your CDR, you’ll see the information you need to develop this methodology.&nbsp; Keep in my that (as I understand it), when an agent picks up a call, the uniqueid will change just like the call had been transferred.<o:p></o:p></span></font></div></div>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.api-digital.com" style="color: blue; text-decoration: underline; ">http://www.api-digital.com</a><span class="Apple-converted-space">&nbsp;</span>--<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello" style="color: blue; text-decoration: underline; ">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" style="color: blue; text-decoration: underline; ">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></span></blockquote></div><br></body></html>