[asterisk-users] Queue stats

Jay Moore jaymoore at accu-com.com
Thu Jul 26 11:06:27 CDT 2007



Jared Smith wrote:
> On Thu, 2007-07-26 at 09:37 -0500, Jay Moore wrote:
>> My boss would like some statistics on how many calls are answered out of 
>> specific queues during a given time period, and I'm not sure how exactly 
>> to obtain those stats.  
> 
> It sounds like you've got quite the queue setup (although I don't quite
> see why your calls jump out and back into the moh queue).  All the of
> queue statistics you need should be available with careful parsing of
> the queue log (usually located in /var/log/asterisk/queue_log).  You can
> also trigger custom queue log events from the dialplan by calling the
> QueueLog() application.  In your case, you might want to add a custom
> queue log entry every time the caller rejoins the moh queue, saying
> something to the effect of "Caller XYZ has rejoined the moh queue for
> the 10th time" or something like that.
> 
> 

We had some issues with the announcement message not playing reliably. 
My fix was to just have them drop out and re-enter the queue.  It 
doesn't seem to have any adverse effects, but if you have any 
alternative suggestions, I'm more than willing to try them.

I've checked my queue log (38megs, yikes) and looked at the queuelog.txt 
info file for how to parse the lines, but I still have a question.  For 
example, a snippet of my log looks like (line numbers mine):

1) 1185460404|1185460400.334916|queue-ring|NONE|ENTERQUEUE||732
2) 1185460420|1185460400.334916|queue-ring|NONE|EXITWITHTIMEOUT|1
3) 1185460427|1185460400.334916|queue-answer|NONE|ENTERQUEUE||732
4) 1185460448|1185460400.334916|queue-answer|NONE|EXITWITHTIMEOUT|1
5) 1185460454|1185460400.334916|queue-answer|NONE|ENTERQUEUE||732
6) 1185460456|1185460400.334916|queue-answer|SIP/agent3-0a5bc480|CONNECT|2
7)
1185460496|1185460400.334916|queue-answer|SIP/agent3-0a5bc480|COMPLETECALLER|2|40

Here's how I interpret this:

1) Call comes into my ring queue
2) Call exits ring queue due to timeout
3) Call enters answer (moh) queue
4) Call exits answer queue due to timeout
5) Call enters answer queue again
6) Agent 3 picks up the call out of the queue
7) Call ends; caller hangs up

So here is my question:

In this format: "1|2|3|4|5|6",
1 - ?
2 - ?
3 - queue in question?
4 - agent answering the queue?
5 - queue event?
6 - queue event info?

Is that correct?  What are options 1 and 2?  Times of some sort I'm 
guessing, but I'm not entirely sure.

Thanks for your help,
Jay



More information about the asterisk-users mailing list