diff --git a/agc_2-X/trunk/docs/ACQS.txt b/agc_2-X/trunk/docs/ACQS.txt index 3881de11..9982fc63 100644 --- a/agc_2-X/trunk/docs/ACQS.txt +++ b/agc_2-X/trunk/docs/ACQS.txt @@ -1,5 +1,5 @@ +------------------------------------------------------------------------------+ -| Asterisk GUI client - astguiclient - fourth public release 0.9.2 | +| Asterisk GUI client - astguiclient | | Description of the Asterisk Central Queue System | | created by Matt Florell | | project started 2003-10-06 http://sourceforge.net/projects/astguiclient/ | @@ -12,8 +12,10 @@ work with Asterisk. Scripts that are involved with the ACQS backend are: - - AST_SERVER_conf.pl - file where you define your variables for the server apps - + Must be present in the /home/cron/ directory + - AST_SERVER_conf.pl - + + - /etc/astguiclient.conf - file where you define your variables for the server apps + + Must be present and configured through the install.pl script - AST_manager_listen.pl - listener for the Asterisk Central Queue System (ACQS) + Must be present in the /home/cron/ directory diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt index 557e5116..9e84d166 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.2.txt @@ -23,6 +23,12 @@ DELETE SERVER VICIDIAL TRUNK RECORD|| VICIDIAL TRUNKS FOR THIS SERVER|| RESTRICTION|| TRUNKS|| +Emergency VDAC Jam Clear|| +VDAC NOT CLEARED FOR CAMPAIGN|| +LAST VDAC RECORD CLEARED FOR CAMPAIGN|| +VDAC CLEAR CONFIRMATION|| +Click here to delete the oldest LIVE record in VDAC for|| + ############################################################ CLIENT diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php index a63bf307..ca0ebf4f 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php @@ -197,11 +197,16 @@ echo "Average QUEUE Length across all calls: $average_total_queue_seconds ############################## ######### USER STATS +$TOTagents=0; +$TOTcalls=0; +$TOTtime=0; +$TOTavg=0; + echo "\n"; -echo "---------- USER STATS\n"; -echo "+--------------------------+------------+--------+--------+\n"; -echo "| USER | CALLS | TIME M | AVRG M |\n"; -echo "+--------------------------+------------+--------+--------+\n"; +echo "---------- AGENT STATS\n"; +echo "+--------------------------+------------+----------+--------+\n"; +echo "| AGENT | CALLS | TIME M | AVRG M |\n"; +echo "+--------------------------+------------+----------+--------+\n"; $stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users 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 vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; $rslt=mysql_query($stmt, $link); @@ -212,6 +217,9 @@ while ($i < $users_to_print) { $row=mysql_fetch_row($rslt); + $TOTcalls = ($TOTcalls + $row[2]); + $TOTtime = ($TOTtime + $row[3]); + $user = sprintf("%-6s", $row[0]); $full_name = sprintf("%-15s", $row[1]); while(strlen($full_name)>15) {$full_name = substr("$full_name", 0, -1);} $USERcalls = sprintf("%10s", $row[2]); @@ -238,12 +246,42 @@ while ($i < $users_to_print) $USERavgTALK_MS = "$USERavgTALK_M_int:$USERavgTALK_S"; $USERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS); - echo "| $user - $full_name | $USERcalls | $USERtotTALK_MS | $USERavgTALK_MS |\n"; + echo "| $user - $full_name | $USERcalls | $USERtotTALK_MS | $USERavgTALK_MS |\n"; $i++; } -echo "+--------------------------+------------+--------+--------+\n"; +$TOTavg = ($TOTtime / $TOTcalls); +$TOTavg = round($TOTavg, 0); +$TOTavg_M = ($TOTavg / 60); +$TOTavg_M = round($TOTavg_M, 2); +$TOTavg_M_int = intval("$TOTavg_M"); +$TOTavg_S = ($TOTavg_M - $TOTavg_M_int); +$TOTavg_S = ($TOTavg_S * 60); +$TOTavg_S = round($TOTavg_S, 0); +if ($TOTavg_S < 10) {$TOTavg_S = "0$TOTavg_S";} +$TOTavg_MS = "$TOTavg_M_int:$TOTavg_S"; +$TOTavg = sprintf("%6s", $TOTavg_MS); + +$TOTtime_M = ($TOTtime / 60); +$TOTtime_M = round($TOTtime_M, 2); +$TOTtime_M_int = intval("$TOTtime_M"); +$TOTtime_S = ($TOTtime_M - $TOTtime_M_int); +$TOTtime_S = ($TOTtime_S * 60); +$TOTtime_S = round($TOTtime_S, 0); +if ($TOTtime_S < 10) {$TOTtime_S = "0$TOTtime_S";} +$TOTtime_MS = "$TOTtime_M_int:$TOTtime_S"; +$TOTtime = sprintf("%6s", $TOTtime_MS); + +$TOTagents = sprintf("%10s", $i); +$TOTcalls = sprintf("%10s", $TOTcalls); +$TOTtime = sprintf("%8s", $TOTtime); +$TOTavg = sprintf("%6s", $TOTavg); + +echo "+--------------------------+------------+----------+--------+\n"; +echo "| TOTAL Agents: $TOTagents | $TOTcalls | $TOTtime | $TOTavg |\n"; +echo "+--------------------------+------------+----------+--------+\n"; + ############################## ######### TIME STATS @@ -337,7 +375,7 @@ while ($k <= 102) if ($Mk >= 5) { $Mk=0; - if ( ($k < 1) or ($hour_multiplier < 1) ) + if ( ($k < 1) or ($hour_multiplier <= 0) ) {$scale_num = 100;} else { @@ -443,14 +481,15 @@ while ($i <= 96) } -echo "+------+-------------------------------------------------------------------------------------------------------+-------+-------+\n"; - - +echo "+------+-------------------------------------------------------------------------------------------------------+-------+-------+\n\n"; +$ENDtime = date("U"); +$RUNtime = ($ENDtime - $STARTtime); +echo "\nRun Time: $RUNtime seconds\n"; } diff --git a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php index 58fc0328..5dde09ac 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php @@ -187,11 +187,16 @@ echo "Average Call Length for NA Calls in seconds: $average_na_seconds\n"; ############################## ######### USER STATS +$TOTagents=0; +$TOTcalls=0; +$TOTtime=0; +$TOTavg=0; + echo "\n"; -echo "---------- USER STATS\n"; -echo "+--------------------------+------------+--------+--------+\n"; -echo "| USER | CALLS | TIME M | AVRG M |\n"; -echo "+--------------------------+------------+--------+--------+\n"; +echo "---------- AGENT STATS\n"; +echo "+--------------------------+------------+----------+--------+\n"; +echo "| AGENT | CALLS | TIME M | AVRG M |\n"; +echo "+--------------------------+------------+----------+--------+\n"; $stmt="select vicidial_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_log,vicidial_users 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 vicidial_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_log.user=vicidial_users.user group by vicidial_log.user;"; $rslt=mysql_query($stmt, $link); @@ -202,6 +207,9 @@ while ($i < $users_to_print) { $row=mysql_fetch_row($rslt); + $TOTcalls = ($TOTcalls + $row[2]); + $TOTtime = ($TOTtime + $row[3]); + $user = sprintf("%-6s", $row[0]); $full_name = sprintf("%-15s", $row[1]); while(strlen($full_name)>15) {$full_name = substr("$full_name", 0, -1);} $USERcalls = sprintf("%10s", $row[2]); @@ -228,12 +236,59 @@ while ($i < $users_to_print) $USERavgTALK_MS = "$USERavgTALK_M_int:$USERavgTALK_S"; $USERavgTALK_MS = sprintf("%6s", $USERavgTALK_MS); - echo "| $user - $full_name | $USERcalls | $USERtotTALK_MS | $USERavgTALK_MS |\n"; + echo "| $user - $full_name | $USERcalls | $USERtotTALK_MS | $USERavgTALK_MS |\n"; $i++; } -echo "+--------------------------+------------+--------+--------+\n"; +$TOTavg = ($TOTtime / $TOTcalls); +$TOTavg = round($TOTavg, 0); +$TOTavg_M = ($TOTavg / 60); +$TOTavg_M = round($TOTavg_M, 2); +$TOTavg_M_int = intval("$TOTavg_M"); +$TOTavg_S = ($TOTavg_M - $TOTavg_M_int); +$TOTavg_S = ($TOTavg_S * 60); +$TOTavg_S = round($TOTavg_S, 0); +if ($TOTavg_S < 10) {$TOTavg_S = "0$TOTavg_S";} +$TOTavg_MS = "$TOTavg_M_int:$TOTavg_S"; +$TOTavg = sprintf("%6s", $TOTavg_MS); + +$TOTtime_M = ($TOTtime / 60); +$TOTtime_M = round($TOTtime_M, 2); +$TOTtime_M_int = intval("$TOTtime_M"); +$TOTtime_S = ($TOTtime_M - $TOTtime_M_int); +$TOTtime_S = ($TOTtime_S * 60); +$TOTtime_S = round($TOTtime_S, 0); +if ($TOTtime_S < 10) {$TOTtime_S = "0$TOTtime_S";} +$TOTtime_MS = "$TOTtime_M_int:$TOTtime_S"; +$TOTtime = sprintf("%6s", $TOTtime_MS); + +$TOTagents = sprintf("%10s", $i); +$TOTcalls = sprintf("%10s", $TOTcalls); +$TOTtime = sprintf("%8s", $TOTtime); +$TOTavg = sprintf("%6s", $TOTavg); + +$stmt="select avg(wait_sec) from vicidial_agent_log where event_time >= '$query_date 00:00:01' and event_time <= '$query_date 23:59:59' and campaign_id='" . mysql_real_escape_string($group) . "';"; +$rslt=mysql_query($stmt, $link); +if ($DB) {echo "$stmt\n";} +$row=mysql_fetch_row($rslt); + +$AVGwait = $row[0]; +$AVGwait_M = ($AVGwait / 60); +$AVGwait_M = round($AVGwait_M, 2); +$AVGwait_M_int = intval("$AVGwait_M"); +$AVGwait_S = ($AVGwait_M - $AVGwait_M_int); +$AVGwait_S = ($AVGwait_S * 60); +$AVGwait_S = round($AVGwait_S, 0); +if ($AVGwait_S < 10) {$AVGwait_S = "0$AVGwait_S";} +$AVGwait_MS = "$AVGwait_M_int:$AVGwait_S"; +$AVGwait = sprintf("%6s", $AVGwait_MS); + +echo "+--------------------------+------------+----------+--------+\n"; +echo "| TOTAL Agents: $TOTagents | $TOTcalls | $TOTtime | $TOTavg |\n"; +echo "+--------------------------+------------+----------+--------+\n"; +echo "| Average Wait time between calls $AVGwait |\n"; +echo "+-----------------------------------------------------------+\n"; ############################## ######### TIME STATS @@ -327,7 +382,7 @@ while ($k <= 102) if ($Mk >= 5) { $Mk=0; - if ( ($k < 1) or ($hour_multiplier < 1) ) + if ( ($k < 1) or ($hour_multiplier <= 0) ) {$scale_num = 100;} else { @@ -440,6 +495,9 @@ echo "+------+------------------------------------------------------------------ +$ENDtime = date("U"); +$RUNtime = ($ENDtime - $STARTtime); +echo "\nRun Time: $RUNtime seconds\n"; } diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index fd1ebfd8..85fea04f 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -2761,7 +2761,7 @@ echo "Park Extension: Park Filename: $NWB#vicidial_campaigns-park_file_name$NWE\n"; echo "Web Form: $NWB#vicidial_campaigns-web_form_address$NWE\n"; echo "Allow Closers: $NWB#vicidial_campaigns-allow_closers$NWE\n"; -echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; +echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; echo "Auto Dial Level: (0 = off)$NWB#vicidial_campaigns-auto_dial_level$NWE\n"; echo "Next Agent Call: $NWB#vicidial_campaigns-next_agent_call$NWE\n"; echo "Local Call Time: $NWB#vicidial_campaigns-local_call_time$NWE\n"; @@ -5991,7 +5991,7 @@ echo "$filters_list"; echo "\n"; echo "$NWB#vicidial_campaigns-lead_filter_id$NWE\n"; -echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; +echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; echo "Force Reset of Hopper: $NWB#vicidial_campaigns-force_reset_hopper$NWE\n"; @@ -6444,7 +6444,7 @@ echo "$filters_list"; echo "\n"; echo "$NWB#vicidial_campaigns-lead_filter_id$NWE\n"; -echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; +echo "Hopper Level: $NWB#vicidial_campaigns-hopper_level$NWE\n"; echo "Force Reset of Hopper: $NWB#vicidial_campaigns-force_reset_hopper$NWE\n";