QueueMetrics > Scripting QueueMetrics
Wallboard Example script
QueueMetrics:
Anybody wants to contribuite this script to the "QueueMetrics add-ons" collection? see http://forum.queuemetrics.com/index.php?board=14.0
moa:
???
Quick question, has anyone figured out how to make the function getAgentLoggedIn(); only return the agents that are logged into the requested queues ? I've got four different wallboards, one for each department. Only problem is it shows every person that is logged into the phones, it doesn't matter if they are associated with the department queues or not.
moa:
Well, guess I should try a few things before I post. Here's a quick and dirty way:
--- Code: ---function getAgentLoggedIn( $blockname, $blocks ) {
$agent = array();
$block = $blocks[$blockname];
for ( $r = 1; $r < sizeof( $block ) ; $r++ ) {
//$queues = $block[$r][4];
if($block[$r][4])
{
$agent[$block[$r][1]]['name'] = $block[$r][1];
$agent[$block[$r][1]]['lastlogin'] = $block[$r][3];
$agent[$block[$r][1]]['queues'] = $block[$r][4];
$agent[$block[$r][1]]['extension'] = $block[$r][5];
$agent[$block[$r][1]]['onpause'] = $block[$r][6];
$agent[$block[$r][1]]['srv'] = $block[$r][7];
$agent[$block[$r][1]]['lastcall'] = $block[$r][8];
$agent[$block[$r][1]]['onqueue'] = $block[$r][9];
$agent[$block[$r][1]]['caller'] = '----------';
$agent[$block[$r][1]]['entered'] = null;
$agent[$block[$r][1]]['waiting'] = null;
$agent[$block[$r][1]]['duration'] = null;
}
}
return $agent;
}
--- End code ---
QueueMetrics:
Really man, why not contribute the script to the sourceforge project? :)
moa:
--- Quote from: QueueMetrics on October 28, 2008, 09:43:38 ---Really man, why not contribute the script to the sourceforge project? :)
--- End quote ---
No one has contributed this yet? I'll contribute it once I figure out this last problem. Here's the issue:
We have queueA and queueB, splitting those up is easy. But when you have a supervisor that is logged into both queues. And he/she is on a call on queueA, he is showing up available on the queueB page. I'm assuming that this has to do with QM and how it displays the users on the realtime stats page. Any suggestions ?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version