fixed timers for non INCALL|QUEUE agents in timeonVDADall PHP report
added queue time stats to VDADCLOSER PHP report git-svn-id: svn://192.168.202.10@246 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#
|
||||
# 60619-1714 - Added variable filtering to eliminate SQL injection attack threat
|
||||
# - Added required user/pass to gain access to this page
|
||||
# 60905-1326 - Added queue time stats
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -117,7 +118,7 @@ $average_hold_seconds = round($average_hold_seconds, 0);
|
||||
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
|
||||
|
||||
echo "Total Calls placed from this Campaign: $TOTALcalls\n";
|
||||
echo "Average Call Length for all Calls in seconds: $average_hold_seconds\n";
|
||||
echo "Average Call Length for all Calls: $average_hold_seconds seconds\n";
|
||||
|
||||
echo "\n";
|
||||
echo "---------- DROPS\n";
|
||||
@@ -136,7 +137,31 @@ $average_hold_seconds = round($average_hold_seconds, 0);
|
||||
$average_hold_seconds = sprintf("%10s", $average_hold_seconds);
|
||||
|
||||
echo "Total DROP Calls: $DROPcalls $DROPpercent%\n";
|
||||
echo "Average Length for DROP Calls in seconds: $average_hold_seconds\n";
|
||||
echo "Average hold time for DROP Calls: $average_hold_seconds seconds\n";
|
||||
|
||||
echo "\n";
|
||||
echo "---------- QUEUE STATS\n";
|
||||
|
||||
$stmt="select count(*),sum(queue_seconds) from vicidial_closer_log where call_date >= '$query_date 00:00:01' and call_date <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "' and (queue_seconds > 0);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
$QUEUEcalls = sprintf("%10s", $row[0]);
|
||||
$QUEUEpercent = (($QUEUEcalls / $TOTALcalls) * 100);
|
||||
$QUEUEpercent = round($QUEUEpercent, 0);
|
||||
|
||||
$average_queue_seconds = ($row[1] / $row[0]);
|
||||
$average_queue_seconds = round($average_queue_seconds, 2);
|
||||
$average_queue_seconds = sprintf("%10.2f", $average_queue_seconds);
|
||||
|
||||
$average_total_queue_seconds = ($row[1] / $TOTALcalls);
|
||||
$average_total_queue_seconds = round($average_total_queue_seconds, 2);
|
||||
$average_total_queue_seconds = sprintf("%10.2f", $average_total_queue_seconds);
|
||||
|
||||
echo "Total Calls That entered Queue: $QUEUEcalls $QUEUEpercent%\n";
|
||||
echo "Average QUEUE Length for queue calls: $average_queue_seconds seconds\n";
|
||||
echo "Average QUEUE Length across all calls: $average_total_queue_seconds seconds\n";
|
||||
|
||||
|
||||
##############################
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# - Added required user/pass to gain access to this page
|
||||
# 60626-1453 - Added display of system load to bottom (Angelito Manansala)
|
||||
# 60901-1123 - Changed display elements at the top of the screen
|
||||
# 60905-1342 - Fixed non INCALL|QUEUE timer column
|
||||
#
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -382,7 +383,10 @@ $talking_to_print = mysql_num_rows($rslt);
|
||||
$server_ip = sprintf("%-15s", $row[4]);
|
||||
$call_server_ip = sprintf("%-15s", $row[7]);
|
||||
$campaign_id = sprintf("%-10s", $row[8]);
|
||||
$call_time_S = ($STARTtime - $row[5]);
|
||||
if (!eregi("INCALL|QUEUE",$row[3]))
|
||||
{$call_time_S = ($STARTtime - $row[6]);}
|
||||
else
|
||||
{$call_time_S = ($STARTtime - $row[5]);}
|
||||
|
||||
$call_time_M = ($call_time_S / 60);
|
||||
$call_time_M = round($call_time_M, 2);
|
||||
|
||||
Reference in New Issue
Block a user