I tested this script today and all went well, except that nothing is happening or displayed as expected at the "Calls Waiting" and the "Agents Status" area. I could see a display of Agents logged on/Available or on a call below as expected.
Please can anyone point me to what am doing wrong or still need to do. Here is my script;
$defaultqueue = 'CustomerCare';
// Allow setting of the queue to monitor, and the refresh time.
isset($_REQUEST['refresh'])? $refresh = $_REQUEST['refresh'] : $refresh=10;
isset($_REQUEST['queue'])?$queureq = $_REQUEST['queue']:$queuereq=$defaultqueue;
$queueid = "4000";
$queuename = 'Customer Care';
// Set up the XML-RPC instance.
require_once 'XML/RPC.php';
$qm_server = "127.0.0.1"; // the QueueMetrics server address
$qm_port = "8080"; // the port QueueMetrics is running on
$qm_webapp = "queue"; // the webapp name for QueueMetricsi
$req_blocks_rt = new XML_RPC_Value(array(
new XML_RPC_Value("RealtimeDO.RTRiassunto"),
new XML_RPC_Value("RealtimeDO.RTCallsBeingProc"),
new XML_RPC_Value("RealtimeDO.RTAgentsLoggedIn")
), "array");
// general invocation parameters. Set the USER and PASSWORD to a QM user with ROBOT key
$params_rt = array(
new XML_RPC_Value($queueid),
new XML_RPC_Value("wallboard"),
new XML_RPC_Value("abcd12345"),
new XML_RPC_Value(""),
new XML_RPC_Value(""),
$req_blocks_rt
);
as you can see, I am monitoring only one queue, so I don't need the switch statement. I hope am right?
Cheers to All.