Author Topic: Unable to report based on agent  (Read 4796 times)

matts

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Unable to report based on agent
« on: April 07, 2011, 22:23:52 »
When I run a custom report for an agent it comes back with 0 calls.  But if I run it for all queues or a queue group it will show calls for that agent.

Any ideas? We're running 1.7

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Unable to report based on agent
« Reply #1 on: April 08, 2011, 09:15:21 »
Most likely the agent name you used was not the one that QM finds, so it yelds zero results.

matts

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Unable to report based on agent
« Reply #2 on: April 08, 2011, 20:07:43 »
I'm selecting the agents from the drop down menu.  The agents are setup as agent/xxxx in QM, and that looks like what the report is looking for and that's what it shows in the report for all agents.

Now to make QM work with our server and all the queue priority patches our developer wrote for asterisk we have to log the agents into the queues as local/xxxx.
exten => 35,4,AddQueueMember(${QUEUENAME},Local/${AGENTCODE}@from-queue/n,${DB(QPENALTY/${QUEUENAME}/agents/${AGENTCODE})},,${DB(AMPUSER/${AGENTCODE}/cidname)},HINT:${AGENTCODE}@ext-local)

I just tried setting one of the agents as Local/xxxx in QM but now he doesn't show up at all in any report.  I'm guessing the report is hard set to look for Agent/xxxx? Or am I missing something?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Unable to report based on agent
« Reply #3 on: April 11, 2011, 11:26:02 »
You can set the rewriteLocalAgents option to true so that when in the queue_log you see "Local/123@from-internal", QM reads "Agent/123"

matts

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Unable to report based on agent
« Reply #4 on: April 11, 2011, 18:49:00 »
I don't see that option in my 'configuration.properties' but I have "default.rewriteLocalChannels=true"

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Unable to report based on agent
« Reply #5 on: April 12, 2011, 10:33:48 »
Yes that's the one.
Are you sure you are simply not picking up data as Agent/XXX where you had Local/XXX?
Also, I would like to see a piece of your queue_log so we cxan check how it looks like.


matts

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: Unable to report based on agent
« Reply #6 on: April 13, 2011, 19:05:54 »
Here's a chunk of the log for agent/7008 logging into Q160, pausing, unpausing, and logging out

Code: [Select]
1302712733|1302712733.21445|160|Local/7008@from-queue/n|ADDMEMBER|
1302712756|NONE|NONE|Local/7008@from-queue/n|PAUSEALL|
1302712756|NONE|160|Matthew S|PAUSE|
1302712756|1302712756.21447|NONE|Agent/7008|PAUSEREASON|22
1302712771|NONE|NONE|Local/7008@from-queue/n|UNPAUSEALL|
1302712771|NONE|160|Matthew S|UNPAUSE|
1302712782|1302712782.21454|160|Local/7008@from-queue/n|REMOVEMEMBER|
« Last Edit: April 13, 2011, 19:38:54 by matts »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Unable to report based on agent
« Reply #7 on: April 15, 2011, 11:49:52 »
It looks correct to me - if you have rewriteLocal enabled, all activity should be sees for Agent/7008.