Another problem I found was:
$params_rt = array(
new XML_RPC_Value($queuename),
new XML_RPC_Value("USER"),
new XML_RPC_Value("PASSWORD"),
new XML_RPC_Value(""),
new XML_RPC_Value(""),
$req_blocks_rt
);
Where $queuename was $queueid but after changing it to $queuename it worked for me... no idea why.
That's because you took out the switch statement:
// Set which queue you want to default to when none is specified
$defaultqueue = 'verification';
// Allow seting of the queue to monitor, and the refresh time.
isset($_REQUEST['refresh'])?$refresh = $_REQUEST['refresh']:$refresh=120;
isset($_REQUEST['queue'])?$queuereq = $_REQUEST['queue']:$queuereq=$defaultqueue;
// Depending on which queue was requested, set $queueid for passing to queuemetrics.
switch ($queuereq) {
case 'verification':
$queueid = "301|310|311|312";
$queuename='Dublin Verification';
break ;;
case 'inbound':
$queueid = "401|402|403|404|405|406|407|408|409|410|411|412";
$queuename='Inbound';
break;;
case 'outbound':
$queueid = "Outbound";
$queuename='Outbound';
break ;;
}
I use this so that I can pass a queue GET parameter such as "inbound" which then sets
$queueid= "401|402|403|404|405|406|407|408|409|410|411|412";
which contains the real Asterisk queue names separated by pipes, and also sets $queuename for display at the top.
-Barry Flanagan