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.
-- 
Jim Dickenson
mailto:dicken...@cfmc.com

CfMC
http://www.cfmc.com/



On Mar 11, 2011, at 7:21 AM, Danny Nicholas wrote:

> 
> From: asterisk-users-boun...@lists.digium.com 
> [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Louis Carreiro
> Sent: Friday, March 11, 2011 9:17 AM
> To: asterisk-users@lists.digium.com
> Subject: [asterisk-users] How do you handle queues with AMI?
>  
> Hey all,
>  
> 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?
>  
> 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?
>  
> 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).
>  
> Thanks!
> Louis
>  
> If you look through your CDR, you’ll see the information you need to develop 
> this methodology.  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.
> --
> _____________________________________________________________________
> -- 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

--
_____________________________________________________________________
-- 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

Reply via email to