QueueMetrics > Scripting QueueMetrics
Wallboard Example script
clara:
Hello,
Does somebody have following error?
Fault Code: 2 Fault Reason: Invalid return payload: enabling debugging to examine incoming payload
Thanks
QueueMetrics:
Where do you get that? in PHP?
clara:
Yes, the fault is generated by the following php code:
echo 'Fault Code: ' . $resp_rt->faultCode() . "\n";
kayodea:
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.
scooby2:
--- Quote from: kayodea on August 14, 2008, 13:03:15 ---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.
--- End quote ---
I'm getting the same thing so I am thinking something with the XML changed. I will post if I get it figured out. I plan on taking a deeper look when I get a chance.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version