From 19792e4a18bb57a6696eac0be15cb379439f4fc8 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 24 Jul 2015 14:31:34 +0000 Subject: [PATCH] Added agent debug logging and report git-svn-id: svn://192.168.202.10@2355 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/UPGRADE | 5 + agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl | 34 +- .../trunk/extras/MySQL_AST_CREATE_tables.sql | 19 +- agc_2-X/trunk/extras/upgrade_2.12.sql | 18 + agc_2-X/trunk/www/agc/active_list_refresh.php | 25 +- agc_2-X/trunk/www/agc/call_log_display.php | 35 +- agc_2-X/trunk/www/agc/conf_exten_check.php | 50 +- agc_2-X/trunk/www/agc/functions.php | 25 + agc_2-X/trunk/www/agc/live_exten_check.php | 25 +- agc_2-X/trunk/www/agc/manager_send.php | 24 +- agc_2-X/trunk/www/agc/park_calls_display.php | 25 +- agc_2-X/trunk/www/agc/vdc_db_query.php | 75 ++- agc_2-X/trunk/www/agc/vicidial.php | 541 +++++++++++------- agc_2-X/trunk/www/agc/voicemail_check.php | 25 +- .../vicidial/AST_agent_debug_log_report.php | 464 +++++++++++++++ agc_2-X/trunk/www/vicidial/admin.php | 20 +- agc_2-X/trunk/www/vicidial/help.php | 6 + 17 files changed, 1159 insertions(+), 257 deletions(-) create mode 100644 agc_2-X/trunk/www/vicidial/AST_agent_debug_log_report.php diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index cd48798f..5ecc36a5 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -103,6 +103,11 @@ OTHER CHANGES: versions 1.8 and higher. If upgrading, you will need to add "dtmf" to the listencron user in manager.conf and reload asterisk. +19. Added agent screen debug logging, which will log almost all mouse clicks + and AJAX calls on the agent screen. Can be enabled for all agents or + only one agent. Also added report to display logs by date/time. These + agent debug logs are deleted after 7 days. + diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl index 02bfa5b0..4000e65b 100644 --- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl +++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl @@ -99,9 +99,10 @@ # 141227-0957 - Changed to clear out old unavail voicemail greetings before copying custom greeting # 150112-2018 - Added flag to delete voicemail greeting when changed from an audio file to empty # 150307-1738 - Added custom meetme enter sounds(only works with Asterisk 1.8) +# 150724-0835 - Added purge of vicidial_ajax_log records older than 7 days to end of day process # -$build = '150307-1738'; +$build = '150724-0835'; $DB=0; # Debug flag @@ -154,6 +155,19 @@ if ($RMsec < 10) {$RMsec = "0$RMsec";} $RMSQLdate = "$RMyear-$RMmon-$RMmday $RMhour:$RMmin:$RMsec"; $RMdate = "$RMyear-$RMmon-$RMmday"; +### calculate the date and time for 7 days ago +$secX = time(); +$SDtarget = ($secX - 604800); # 7 days ago +($SDsec,$SDmin,$SDhour,$SDmday,$SDmon,$SDyear,$SDwday,$SDyday,$SDisdst) = localtime($SDtarget); +$SDyear = ($SDyear + 1900); +$SDmon++; +if ($SDmon < 10) {$SDmon = "0$SDmon";} +if ($SDmday < 10) {$SDmday = "0$SDmday";} +if ($SDhour < 10) {$SDhour = "0$SDhour";} +if ($SDmin < 10) {$SDmin = "0$SDmin";} +if ($SDsec < 10) {$SDsec = "0$SDsec";} +$SDSQLdate = "$SDyear-$SDmon-$SDmday $SDhour:$SDmin:$SDsec"; +$SDdate = "$SDyear-$SDmon-$SDmday"; ### begin parsing run-time options ### @@ -1256,6 +1270,24 @@ if ($timeclock_end_of_day_NOW > 0) + ##### BEGIN vicidial_ajax_log end of day process removing records older than 7 days ##### + $stmtA = "DELETE from vicidial_ajax_log where db_time < \"$SDSQLdate\";"; + if($DBX){print STDERR "\n|$stmtA|\n";} + $affected_rows = $dbhA->do($stmtA); + if($DB){print STDERR "\n|$affected_rows vicidial_ajax_log records older than 7 days purged|\n";} + + $stmtA = "optimize table vicidial_ajax_log;"; + if($DBX){print STDERR "\n|$stmtA|\n";} + $sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr; + $sthA->execute or die "executing: $stmtA ", $dbhA->errstr; + $sthArows=$sthA->rows; + @aryA = $sthA->fetchrow_array; + if ($DB) {print "|",$aryA[0],"|",$aryA[1],"|",$aryA[2],"|",$aryA[3],"|","\n";} + $sthA->finish(); + ##### END vicidial_ajax_log end of day process removing records older than 7 days ##### + + + $dbhC = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VARDB_custom_user", "$VARDB_custom_pass") or die "Couldn't connect to database: " . DBI->errstr; diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index 1d103938..b2ac4f06 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -1599,7 +1599,8 @@ meetme_enter_leave3way_filename VARCHAR(255) default '', enable_did_entry_list_id ENUM('0','1') default '0', enable_third_webform ENUM('0','1') default '0', chat_url VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, -chat_timeout INT(3) unsigned DEFAULT NULL +chat_timeout INT(3) unsigned DEFAULT NULL, +agent_debug_logging VARCHAR(20) default '0' ) ENGINE=MyISAM; CREATE TABLE vicidial_campaigns_list_mix ( @@ -3280,6 +3281,20 @@ PRIMARY KEY (dtmf_id), KEY vicidial_dtmf_uniqueid_key (uniqueid) ) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; +CREATE TABLE vicidial_ajax_log ( +user VARCHAR(20) default '', +start_time DATETIME NOT NULL, +db_time DATETIME NOT NULL, +run_time VARCHAR(20) default '0', +php_script VARCHAR(40) NOT NULL, +action VARCHAR(100) default '', +lead_id INT(10) UNSIGNED default '0', +stage VARCHAR(100) default '', +session_name VARCHAR(40) default '', +last_sql TEXT, +KEY ajax_dbtime_key (db_time) +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + ALTER TABLE vicidial_email_list MODIFY message text character set utf8; @@ -3529,4 +3544,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version'; UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1420',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1421',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/agc_2-X/trunk/extras/upgrade_2.12.sql b/agc_2-X/trunk/extras/upgrade_2.12.sql index 2acce0a2..83012d72 100644 --- a/agc_2-X/trunk/extras/upgrade_2.12.sql +++ b/agc_2-X/trunk/extras/upgrade_2.12.sql @@ -217,3 +217,21 @@ KEY vicidial_dtmf_uniqueid_key (uniqueid) ) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; UPDATE system_settings SET db_schema_version='1420',db_schema_update_date=NOW() where db_schema_version < 1420; + +CREATE TABLE vicidial_ajax_log ( +user VARCHAR(20) default '', +start_time DATETIME NOT NULL, +db_time DATETIME NOT NULL, +run_time VARCHAR(20) default '0', +php_script VARCHAR(40) NOT NULL, +action VARCHAR(100) default '', +lead_id INT(10) UNSIGNED default '0', +stage VARCHAR(100) default '', +session_name VARCHAR(40) default '', +last_sql TEXT, +KEY ajax_dbtime_key (db_time) +) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_unicode_ci; + +ALTER TABLE system_settings ADD agent_debug_logging VARCHAR(20) default '0'; + +UPDATE system_settings SET db_schema_version='1421',db_schema_update_date=NOW() where db_schema_version < 1421; diff --git a/agc_2-X/trunk/www/agc/active_list_refresh.php b/agc_2-X/trunk/www/agc/active_list_refresh.php index 624364dc..0ea8e414 100644 --- a/agc_2-X/trunk/www/agc/active_list_refresh.php +++ b/agc_2-X/trunk/www/agc/active_list_refresh.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to serve updates of the live data to the display scripts # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -45,10 +45,14 @@ # 140811-0850 - Changed to use QXZ function for echoing text # 141128-0901 - Code cleanup for QXZ functions # 141216-2119 - Added language settings lookups and user/pass variable standardization +# 150723-1715 - Added ajax logging # -$version = '0.0.16'; -$build = '141216-2119'; +$version = '0.0.17'; +$build = '150723-1715'; +$php_script = 'active_list_refresh.php'; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -142,7 +146,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -153,6 +157,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -161,6 +166,13 @@ if ($non_latin < 1) { $user=preg_replace("/[^-_0-9a-zA-Z]/","",$user); } +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $auth=0; $auth_message = user_authorization($user,$pass,'',0,1,0); @@ -511,7 +523,8 @@ $ENDtime = date("U"); $RUNtime = ($ENDtime - $StarTtime); if ($format=='table') {echo "\n";} if ($format=='table') {echo "\n\n\n";} - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; ?> diff --git a/agc_2-X/trunk/www/agc/call_log_display.php b/agc_2-X/trunk/www/agc/call_log_display.php index 0b0a1447..c104d7a5 100644 --- a/agc_2-X/trunk/www/agc/call_log_display.php +++ b/agc_2-X/trunk/www/agc/call_log_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the inbound and outbound calls for a specific phone # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -37,10 +37,14 @@ # 141118-1232 - Formatting changes for QXZ output # 141128-0852 - Code cleanup for QXZ functions # 141216-2113 - Added language settings lookups and user/pass variable standardization +# 150723-1714 - Added ajax logging # -$version = '0.0.11'; -$build = '141216-2113'; +$version = '0.0.12'; +$build = '150723-1714'; +$php_script = 'call_log_display.php'; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -52,14 +56,14 @@ if (isset($_GET["pass"])) {$pass=$_GET["pass"];} elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];} if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} -if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];} - elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];} +if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];} + elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];} if (isset($_GET["format"])) {$format=$_GET["format"];} - elseif (isset($_POST["format"])) {$format=$_POST["format"];} + elseif (isset($_POST["format"])) {$format=$_POST["format"];} if (isset($_GET["exten"])) {$exten=$_GET["exten"];} elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];} -if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];} - elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];} +if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];} + elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];} $user=preg_replace("/\'|\"|\\\\|;| /","",$user); $pass=preg_replace("/\'|\"|\\\\|;| /","",$pass); @@ -94,7 +98,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03001',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -105,6 +109,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -113,6 +118,13 @@ if ($non_latin < 1) { $user=preg_replace("/[^-_0-9a-zA-Z]/","",$user); } +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $auth=0; $auth_message = user_authorization($user,$pass,'',0,1,0); @@ -236,7 +248,8 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; ?> diff --git a/agc_2-X/trunk/www/agc/conf_exten_check.php b/agc_2-X/trunk/www/agc/conf_exten_check.php index 541820cd..b4cc546c 100644 --- a/agc_2-X/trunk/www/agc/conf_exten_check.php +++ b/agc_2-X/trunk/www/agc/conf_exten_check.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send whether the meetme conference has live channels connected and which they are # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -67,14 +67,18 @@ # 141128-0853 - Code cleanup for QXZ functions # 141216-2111 - Added language settings lookups and user/pass variable standardization # 141228-0053 - Found missing phrase for QXZ +# 150723-1708 - Added ajax logging and agent screen click logging # -$version = '2.10-42'; -$build = '141228-0053'; +$version = '2.12-43'; +$build = '150723-1708'; +$php_script = 'conf_exten_check.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=40; $one_mysql_log=0; $DB=0; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -108,6 +112,8 @@ if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp" elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];} if (isset($_GET["bcrypt"])) {$bcrypt=$_GET["bcrypt"];} elseif (isset($_POST["bcrypt"])) {$bcrypt=$_POST["bcrypt"];} +if (isset($_GET["clicks"])) {$clicks=$_GET["clicks"];} + elseif (isset($_POST["clicks"])) {$clicks=$_POST["clicks"];} if ($bcrypt == 'OFF') {$bcrypt=0;} @@ -134,7 +140,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03001',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -145,6 +151,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -161,6 +168,13 @@ $server_ip = preg_replace("/\'|\"|\\\\|;/","",$server_ip); if (!isset($format)) {$format="text";} if (!isset($ACTION)) {$ACTION="refresh";} if (!isset($client)) {$client="agc";} +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $Alogin='N'; $RingCalls='N'; @@ -792,7 +806,33 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } + +if ($SSagent_debug_logging > 0) + { + vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt); + ### log the clicks that are sent from the agent screen + if (strlen($clicks) > 1) + { + $cd=0; + $clicks = preg_replace("/\|$/",'',$clicks); + $clicks_details = explode('|',$clicks); + $clicks_details_ct = count($clicks_details); + while($cd < $clicks_details_ct) + { + $click_data = explode('-----',$clicks_details[$cd]); + $click_time = $click_data[0]; + $click_function_data = explode('---',$click_data[1]); + $click_function = $click_function_data[0]; + $click_options = $click_function_data[1]; + + $stmtA="INSERT INTO vicidial_ajax_log set user='$user',start_time='$click_time',db_time=NOW(),run_time='0',php_script='vicidial.php',action='$click_function',lead_id='$lead_id',stage='$cd|$click_options',session_name='$session_name',last_sql='';"; + $rslt=mysql_to_mysqli($stmtA, $link); + + $cd++; + } + } + } exit; ?> diff --git a/agc_2-X/trunk/www/agc/functions.php b/agc_2-X/trunk/www/agc/functions.php index 8d6a82fd..07b1b8f2 100644 --- a/agc_2-X/trunk/www/agc/functions.php +++ b/agc_2-X/trunk/www/agc/functions.php @@ -27,6 +27,7 @@ # 150108-1647 - removed phones count as part of validation, can cause problems when there are many phones # 150111-1541 - Added lists option: local call time(Issue #812) # 150512-0615 - Fix for non-latin customer data +# 150724-0843 - Added vicidial_ajax_log function # # $mysql_queries = 20 @@ -2026,6 +2027,30 @@ function dialable_gmt($DB,$link,$local_call_time,$gmt_offset,$state) +##### AJAX process logging ##### +function vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt) + { + $endMS = microtime(); + $startMSary = explode(" ",$startMS); + $endMSary = explode(" ",$endMS); + $runS = ($endMSary[0] - $startMSary[0]); + $runM = ($endMSary[1] - $startMSary[1]); + $TOTALrun = ($runS + $runM); + + $stmt = preg_replace('/;/', '', $stmt); + $stmt = addslashes($stmt); + + $stmtA="INSERT INTO vicidial_ajax_log set user='$user',start_time='$NOW_TIME',db_time=NOW(),run_time='$TOTALrun',php_script='$php_script',action='$ACTION',lead_id='$lead_id',stage='$stage',session_name='$session_name',last_sql=\"$stmt\";"; + $rslt=mysql_to_mysqli($stmtA, $link); + +# $ajx = fopen ("./vicidial_ajax_log.txt", "a"); +# fwrite ($ajx, $stmtA . "\n"); +# fclose($ajx); + + return 1; + } + + ##### MySQL Error Logging ##### function mysql_error_logging($NOW_TIME,$link,$mel,$stmt,$query_id,$user,$server_ip,$session_name,$one_mysql_log) { diff --git a/agc_2-X/trunk/www/agc/live_exten_check.php b/agc_2-X/trunk/www/agc/live_exten_check.php index 262a9c89..1de05535 100644 --- a/agc_2-X/trunk/www/agc/live_exten_check.php +++ b/agc_2-X/trunk/www/agc/live_exten_check.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send whether the client channel is live and to what channel it is connected # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -38,10 +38,14 @@ # 141118-1236 - Formatting changes for QXZ output # 141128-0854 - Code cleanup for QXZ functions # 141216-2109 - Added language settings lookups and user/pass variable standardization +# 150723-1713 - Added ajax logging # -$version = '2.10-15'; -$build = '141216-2109'; +$version = '2.10-16'; +$build = '150723-1713'; +$php_script = 'live_exten_check.php'; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -94,7 +98,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -105,6 +109,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -113,6 +118,13 @@ if ($non_latin < 1) { $user=preg_replace("/[^-_0-9a-zA-Z]/","",$user); } +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $auth=0; $auth_message = user_authorization($user,$pass,'',0,1,0); @@ -318,7 +330,8 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; ?> diff --git a/agc_2-X/trunk/www/agc/manager_send.php b/agc_2-X/trunk/www/agc/manager_send.php index 75f401c5..290411c3 100644 --- a/agc_2-X/trunk/www/agc/manager_send.php +++ b/agc_2-X/trunk/www/agc/manager_send.php @@ -125,13 +125,17 @@ # 141216-2107 - Added language settings lookups and user/pass variable standardization # 150307-1837 - Added leave 3way custom sound context # 150701-1208 - Modified mysqli_error() to mysqli_connect_error() where appropriate +# 150723-1643 - Added ajax logging # -$version = '2.12-72'; -$build = '150701-1208'; +$version = '2.12-73'; +$build = '150723-1643'; +$php_script = 'manager_send.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=129; $one_mysql_log=0; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -264,7 +268,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,allow_sipsak_messages,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename FROM system_settings;"; +$stmt = "SELECT use_non_latin,allow_sipsak_messages,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02001',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -278,6 +282,7 @@ if ($qm_conf_ct > 0) $SSlanguage_method = $row[3]; $meetme_enter_login_filename = $row[4]; $meetme_enter_leave3way_filename = $row[5]; + $SSagent_debug_logging = $row[6]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -287,6 +292,13 @@ if ($non_latin < 1) $user=preg_replace("/[^-_0-9a-zA-Z]/","",$user); $secondS = preg_replace("/[^0-9]/","",$secondS); } +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $threeway_context = $ext_context; if (strlen($meetme_enter_leave3way_filename) > 0) @@ -476,6 +488,7 @@ if ($ACTION=="Originate") if ( (preg_match('/MANUAL/i',$agent_dialed_type)) and ( (preg_match("/^\d860\d\d\d\d$/i",$exten)) or (preg_match("/^860\d\d\d\d$/i",$exten)) ) ) { echo "ERROR"._QXZ(" You are not allowed to dial into other agent sessions")." $exten\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } @@ -1578,6 +1591,7 @@ if ($ACTION=="RedirectXtraCXNeW") echo "NeWSessioN|$exten|\n"; echo "|$stmtG|\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -1792,6 +1806,7 @@ if ($ACTION=="RedirectXtraNeW") echo "NeWSessioN|$exten|\n"; echo "|$stmtB|\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -2280,7 +2295,8 @@ $ENDtime = date("U"); $RUNtime = ($ENDtime - $StarTtime); if ($format=='debug') {echo "\n";} if ($format=='debug') {echo "\n\n\n";} - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; diff --git a/agc_2-X/trunk/www/agc/park_calls_display.php b/agc_2-X/trunk/www/agc/park_calls_display.php index 99ddf03f..e0a41210 100644 --- a/agc_2-X/trunk/www/agc/park_calls_display.php +++ b/agc_2-X/trunk/www/agc/park_calls_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to send the details on the parked calls on the server # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -29,10 +29,14 @@ # 140811-0839 - Changed to use QXZ function for echoing text # 141118-1237 - Formatting changes for QXZ output # 141216-2105 - Added language settings lookups and user/pass variable standardization +# 150723-1712 - Added ajax logging # -$version = '0.0.11'; -$build = '141216-2105'; +$version = '0.0.12'; +$build = '150723-1712'; +$php_script = 'park_calls_display.php'; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -82,7 +86,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -93,6 +97,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -101,6 +106,13 @@ if ($non_latin < 1) { $user=preg_replace("/[^-_0-9a-zA-Z]/","",$user); } +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $auth=0; @@ -186,7 +198,8 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; ?> diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 482b79ff..455f9634 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -383,14 +383,18 @@ # 150701-1205 - Modified mysqli_error() to mysqli_connect_error() where appropriate # 150706-0903 - Added user lead filter option for no-hopper dialing # 150711-0815 - Changed to allow for multiple Dispo Call URLs +# 150723-1705 - Added ajax logging # -$version = '2.12-278'; -$build = '150711-0815'; +$version = '2.12-279'; +$build = '150723-1705'; +$php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=616; $one_mysql_log=0; $DB=0; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -814,7 +818,7 @@ $sip_hangup_cause_dictionary = array( ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,timeclock_end_of_day,agentonly_callback_campaign_lock,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,timeclock_end_of_day,agentonly_callback_campaign_lock,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,qc_features_active,allow_emails,callback_time_24hour,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00001',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -835,6 +839,7 @@ if ($qm_conf_ct > 0) $callback_time_24hour = $row[10]; $SSenable_languages = $row[11]; $SSlanguage_method = $row[12]; + $SSagent_debug_logging = $row[13]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -865,6 +870,13 @@ if (!isset($format)) {$format="text";} if ($format == 'debug') {$DB=1;} if (!isset($ACTION)) {$ACTION="refresh";} if (!isset($query_date)) {$query_date = $NOW_DATE;} +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } $VUselected_language = ''; $stmt="SELECT selected_language from vicidial_users where user='$user';"; @@ -946,6 +958,7 @@ if ($ACTION == 'LogiNCamPaigns') echo "\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -1049,6 +1062,7 @@ if ($ACTION == 'LogiNCamPaigns') echo "\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -1129,6 +1143,7 @@ if ($ACTION == 'LogiNCamPaigns') $VDdisplayMESSAGE.= _QXZ("Manager Password:")."
\n"; $VDdisplayMESSAGE.= "



\n"; echo "$VDdisplayMESSAGE"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -1187,6 +1202,7 @@ if ($ACTION == 'LogiNCamPaigns') echo "\n"; echo "\n"; } + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } @@ -1204,6 +1220,7 @@ if ($ACTION == 'regCLOSER') { $channel_live=0; echo _QXZ("Group Choice is not valid").": $closer_choice\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -1440,6 +1457,7 @@ if ($ACTION == 'regTERRITORY') { $channel_live=0; echo _QXZ("Territory Choice is not valid")."$agent_territories\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -1705,6 +1723,7 @@ if ($ACTION == 'manDiaLnextCaLL') $channel_live=0; echo "HOPPER EMPTY\n"; echo _QXZ("Conf Exten %1s or campaign %2s or ext_context %3s is not valid",0,'',$conf_exten,$campaign,$ext_context)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -1995,6 +2014,7 @@ if ($ACTION == 'manDiaLnextCaLL') $VLAEDaffected_rows = mysqli_affected_rows($link); echo "OUTSIDE OF LOCAL CALL TIME $VMDQaffected_rows|$VLAEDaffected_rows\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -2028,6 +2048,7 @@ if ($ACTION == 'manDiaLnextCaLL') $VLAEDaffected_rows = mysqli_affected_rows($link); echo "DNC NUMBER\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } if ( (preg_match("/Y/",$use_campaign_dnc)) or (preg_match("/AREACODE/",$use_campaign_dnc)) ) @@ -2068,6 +2089,7 @@ if ($ACTION == 'manDiaLnextCaLL') $VLAEDaffected_rows = mysqli_affected_rows($link); echo "DNC NUMBER\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -2142,6 +2164,7 @@ if ($ACTION == 'manDiaLnextCaLL') $VLAEDaffected_rows = mysqli_affected_rows($link); echo "NUMBER NOT IN CAMPLISTS\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -4196,6 +4219,7 @@ if ($ACTION == 'alt_phone_change') $channel_live=0; echo _QXZ("ALT PHONE NUMBER STATUS NOT CHANGED")."\n"; echo _QXZ("%1s %2s %3s or %4s is not valid",0,'',$phone_number,$stage,$lead_id,$called_count)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -4221,6 +4245,7 @@ if ($ACTION == 'AlertControl') $channel_live=0; echo _QXZ("AGENT ALERT SETTING NOT CHANGED")."\n"; echo _QXZ("%1s is not valid",0,'',$stage)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -4252,6 +4277,7 @@ if ($ACTION == 'manDiaLskip') $channel_live=0; echo "LEAD NOT REVERTED\n"; echo _QXZ("Conf Exten %1s or campaign %2s or ext_context %3s is not valid",0,'',$conf_exten,$campaign,$ext_context)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -4301,6 +4327,7 @@ if ($ACTION == 'manDiaLonly') $channel_live=0; echo " CALL NOT PLACED\n"; echo _QXZ("Conf Exten %1s or campaign %2s or ext_context %3s or phone_number %4s or lead_id %5s is not valid",0,'',$conf_exten,$campaign,$ext_context,$phone_number,$lead_id)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -4381,6 +4408,7 @@ if ($ACTION == 'manDiaLonly') if ($row[0] > 0) { echo " CALL NOT PLACED\nDNC NUMBER\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } if ( (preg_match("/Y/",$use_campaign_dnc)) or (preg_match("/AREACODE/",$use_campaign_dnc)) ) @@ -4408,6 +4436,7 @@ if ($ACTION == 'manDiaLonly') if ($row[0] > 0) { echo " CALL NOT PLACED\nDNC NUMBER\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -4469,6 +4498,7 @@ if ($ACTION == 'manDiaLonly') if ($row[0] < 1) { echo " CALL NOT PLACED\nNUMBER NOT IN CAMPLISTS\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -4880,6 +4910,7 @@ if ($ACTION == 'manDiaLlookCaLL') { echo "NO\n"; echo "MDnextCID $MDnextCID is not valid\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -5031,6 +5062,7 @@ if ($stage == "start") echo "LOG NOT ENTERED\n"; echo _QXZ("uniqueid %1s or lead_id: %2s or list_id: %3s or phone_number: %4s or campaign: %5s is not valid",0,'',$uniqueid,$lead_id,$list_id,$phone_number,$campaign)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -6309,6 +6341,7 @@ if ($stage == "end") fclose($fp); exit; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} } $talk_sec=0; @@ -6392,6 +6425,7 @@ if ($ACTION == 'VDADREcheckINCOMING') echo "0\n"; echo _QXZ("Campaign %1s is not valid",0,'',$campaign)."\n"; echo _QXZ("lead_id %1s is not valid",0,'',$lead_id)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -6444,6 +6478,7 @@ if ($ACTION == 'VDADcheckINCOMING') $channel_live=0; echo "0\n"; echo _QXZ("Campaign %1s is not valid",0,'',$campaign)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -7675,6 +7710,7 @@ if ($ACTION == 'VDADcheckINCOMING') { echo "0\n"; # echo "No calls in QUEUE for $user on $server_ip\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -7736,6 +7772,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail') $channel_live=0; echo "0\n"; echo _QXZ("Campaign %1s is not valid",0,'',$campaign)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -8660,6 +8697,7 @@ if ($ACTION == 'VDADcheckINCOMINGemail') { echo "0\n"; # echo "No calls in QUEUE for $user on $server_ip\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -8690,6 +8728,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') $channel_live=0; echo "0\n"; echo _QXZ("Campaign %1s is not valid or lead_id %2s is not valid",0,'',$campaign,$lead_id)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -9387,6 +9426,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE') { echo "0\n"; # echo "No leads to update for $user on $server_ip\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -9406,6 +9446,7 @@ if ($ACTION == 'updateDISPO') if ( (strlen($dispo_choice)<1) || (strlen($lead_id)<1) ) { echo _QXZ("Dispo Choice %1s or lead_id %2s is not valid",0,'',$dispo,$lead_id)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11069,6 +11110,7 @@ if ($ACTION == 'RUNurls') if (strlen($url_ids) < 2) { echo _QXZ("URL IDs are is not valid",0,'',$url_ids)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11145,6 +11187,7 @@ if ($ACTION == 'updateLEAD') if ( (strlen($phone_number)<1) || (strlen($lead_id)<1) ) { echo _QXZ("phone_number %1s or lead_id %2s is not valid",0,'',$phone_number,$lead_id)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11251,6 +11294,7 @@ if ( ($ACTION == 'VDADpause') or ($ACTION == 'VDADready') or ($pause_trigger == if ( (strlen($vla_status)<2) or (strlen($server_ip)<1) ) { echo _QXZ("stage %1s is not valid",0,'',$vla_status)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11486,6 +11530,7 @@ if ($ACTION == 'userLOGout') { echo "NO\n"; echo _QXZ("campaign %1s or conf_exten %2s is not valid",0,'',$campaign,$conf_exten)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11766,6 +11811,7 @@ if ($ACTION == 'UpdatEFavoritEs') if ( (strlen($favorites_list)<1) || (strlen($user)<1) || (strlen($exten)<1) ) { echo _QXZ("favorites list %1s is not valid",0,'',$favorites_list)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -11804,6 +11850,7 @@ if ($ACTION == 'PauseCodeSubmit') if ( (strlen($status)<1) or (strlen($agent_log_id)<1) ) { echo _QXZ("agent_log_id %1s or pause_code %2s is not valid",0,'',$agent_log_id,$status)."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -12146,6 +12193,7 @@ if ($ACTION == 'CALLSINQUEUEview') if (preg_match('/NONE/i',$view_calls_in_queue)) { echo _QXZ("Calls in Queue View Disabled for this campaign")."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -12472,7 +12520,7 @@ if ($ACTION == 'CALLLOGview') echo " $ALLhangup_reason[$i] \n"; echo " "._QXZ("INFO")." \n"; if ($manual_dial_filter > 0) - {echo " "._QXZ("DIAL")." \n";} + {echo " "._QXZ("DIAL")." \n";} else {echo " "._QXZ("DIAL")." \n";} echo "\n"; @@ -12582,6 +12630,7 @@ if ($ACTION == 'SEARCHRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } @@ -12800,7 +12849,7 @@ if ($ACTION == 'SEARCHRESULTSview') if ($inbound_lead_search < 1) { if ($manual_dial_filter > 0) - {echo " "._QXZ("DIAL")." \n";} + {echo " "._QXZ("DIAL")." \n";} else {echo " "._QXZ("DIAL")." \n";} } @@ -12833,6 +12882,7 @@ if ($ACTION == 'SEARCHRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } ##### END search queries and output ##### @@ -12843,6 +12893,7 @@ if ($ACTION == 'SEARCHRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -13023,6 +13074,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } @@ -13163,6 +13215,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } ##### END search queries and output ##### @@ -13173,6 +13226,7 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "

"; echo ""._QXZ("Go Back").""; echo ""; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -13452,7 +13506,7 @@ if ($ACTION == 'LEADINFOview') if ($hide_dial_links < 1) { if ($manual_dial_filter > 0) - {$INFOout .= " "._QXZ("DIAL")." ";} + {$INFOout .= " "._QXZ("DIAL")." ";} else {$INFOout .= _QXZ(" DIAL ");} } @@ -13460,7 +13514,7 @@ if ($ACTION == 'LEADINFOview') if ( ($label_phone_number=='---HIDE---') and ($hide_dial_links < 1) ) { if ($manual_dial_filter > 0) - {$INFOout .= ""._QXZ("Dial Link:")."   "._QXZ("DIAL")." ";} + {$INFOout .= ""._QXZ("Dial Link:")."   "._QXZ("DIAL")." ";} else {$INFOout .= ""._QXZ("Dial Link:")."   "._QXZ(" DIAL ");} } @@ -13498,7 +13552,7 @@ if ($ACTION == 'LEADINFOview') if ($hide_dial_links < 1) { if ($manual_dial_filter > 0) - {$INFOout .= " "._QXZ("DIAL")." ";} + {$INFOout .= " "._QXZ("DIAL")." ";} else {$INFOout .= " DIAL ";} } @@ -13833,6 +13887,7 @@ if ($ACTION == 'CALLSINQUEUEgrab') if ( (preg_match('/NONE/i',$view_calls_in_queue)) or (preg_match('/N/i',$grab_calls_in_queue)) ) { echo "ERROR: "._QXZ("Calls in Queue View Disabled for this campaign")."\n"; + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } else @@ -13887,6 +13942,7 @@ if ($ACTION == 'CALLSINQUEUEgrab') fclose($fp); } } + if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; } } @@ -14099,7 +14155,8 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 2eaaeea4..b96b782d 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -493,10 +493,11 @@ # 150701-1211 - Modified mysqli_error() to mysqli_connect_error() where appropriate # 150704-0005 - Changed disposubmit to be blocking before resume, Issue #863 # 150712-2045 - Changed dispo call url to operate through a separate AJAX process +# 150723-1741 - Created method for logging agent button/link clicks # -$version = '2.12-465c'; -$build = '150712-2045'; +$version = '2.12-466c'; +$build = '150723-1741'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=85; $one_mysql_log=0; @@ -4144,10 +4145,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var status_display_ingroup=''; var customer_gone_seconds=''; var updatedispo_resume_trigger='0'; - var DiaLControl_auto_HTML = "\" border=\"0\" alt=\"You are paused\" />"; - var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\"You are active\" />"; + var button_click_log='-----LOGIN---|'; + var DiaLControl_auto_HTML = "\" border=\"0\" alt=\"You are paused\" />"; + var DiaLControl_auto_HTML_ready = "\" border=\"0\" alt=\"You are active\" />"; var DiaLControl_auto_HTML_OFF = "\" border=\"0\" alt=\"pause button disabled\" />"; - var DiaLControl_manual_HTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + var DiaLControl_manual_HTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; var image_loading = new Image(); image_loading.src="./images/"; var image_blank = new Image(); @@ -4244,6 +4246,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // Send Hangup command for Live call connected to phone now to Manager function livehangup_send_hangup(taskvar) { + button_click_log = button_click_log + "" + SQLdate + "-----livehangup_send_hangup---" + taskvar + "|"; var xmlhttp=false; /*@cc_on @*/ /*@if (@_jscript_version >= 5) @@ -4288,6 +4291,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // Send volume control command for meetme participant function volume_control(taskdirection,taskvolchannel,taskagentmute) { + button_click_log = button_click_log + "" + SQLdate + "-----volume_control---" + taskdirection + " " + taskvolchannel + " " + taskagentmute + "|"; if (taskagentmute=='AgenT') { taskvolchannel = agentchannel; @@ -4349,6 +4353,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // Send alert control command for agent function alert_control(taskalert) { + button_click_log = button_click_log + "" + SQLdate + "-----alert_control---" + taskalert + "|"; var xmlhttp=false; /*@cc_on @*/ /*@if (@_jscript_version >= 5) @@ -4403,6 +4408,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // custom button transfer 3way call function custom_button_transfer() { + button_click_log = button_click_log + "" + SQLdate + "-----custom_button_transfer---|"; ShoWTransferMain('ON'); if (custom_3way_button_transfer_contacts > 0) { @@ -4462,8 +4468,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // park customer and place 3way call - function xfer_park_dial() + function xfer_park_dial(XPDclick) { + if (XPDclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----xfer_park_dial---|";} conf_dialed=1; mainxfer_send_redirect('ParK',lastcustchannel,lastcustserverip); @@ -4473,8 +4481,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // place 3way and customer into other conference and fake-hangup the lines - function leave_3way_call(tempvarattempt) + function leave_3way_call(tempvarattempt,LTCclick) { + if (LTCclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----leave_3way_call---" + tempvarattempt + "|";} threeway_end=0; leaving_threeway=1; @@ -4500,8 +4510,10 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // ################################################################################ // filter manual dialstring and pass on to originate call - function SendManualDial(taskFromConf) + function SendManualDial(taskFromConf,SMDclick) { + if (SMDclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----SendManualDial---" + taskFromConf + "|";} conf_dialed=1; var sending_group_alias = 0; // Dial With Customer button @@ -4831,8 +4843,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // filter conf_dtmf send string and pass on to originate call - function SendConfDTMF(taskconfdtmf) + function SendConfDTMF(taskconfdtmf,SDTclick) { + if (SDTclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----SendConfDTMF---" + taskconfdtmf + "|";} var dtmf_number = document.vicidial_form.conf_dtmf.value; var dtmf_string = dtmf_number.toString(); var conf_dtmf_room = taskconfdtmf; @@ -4923,7 +4937,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (xmlhttprequestcheckconf) { - checkconf_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&client=vdc&conf_exten=" + taskconfnum + "&auto_dial_level=" + auto_dial_level + "&campagentstdisp=" + campagentstdisp; + checkconf_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&client=vdc&conf_exten=" + taskconfnum + "&auto_dial_level=" + auto_dial_level + "&campagentstdisp=" + campagentstdisp + "&clicks=" + button_click_log; + button_click_log=''; xmlhttprequestcheckconf.open('POST', 'conf_exten_check.php'); xmlhttprequestcheckconf.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttprequestcheckconf.send(checkconf_query); @@ -5572,8 +5587,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send MonitorConf/StopMonitorConf command for recording of conferences - function conf_send_recording(taskconfrectype,taskconfrec,taskconffile,taskfromapi,taskapiappend) + function conf_send_recording(taskconfrectype,taskconfrec,taskconffile,taskfromapi,taskapiappend,CSRclick) { + if (CSRclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----conf_send_recording---" + taskconfrectype + " " + taskconfrec + " " + taskconffile + " " + taskfromapi + " " + taskapiappend + "|";} if (inOUT == 'OUT') { tmp_vicidial_id = document.vicidial_form.uniqueid.value; @@ -5637,7 +5654,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // filename = filedate + "_" + user_abb; var query_recording_exten = recording_exten; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\" border=\"0\" alt=\"Stop Recording\" />"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Stop Recording\" />"; if (LIVE_campaign_recording == 'ALLFORCE') { @@ -5653,7 +5670,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) filename = taskconffile; var query_recording_exten = session_id; var channelrec = "Local/" + conf_silent_prefix + '' + taskconfrec + "@" + ext_context; - var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; if (LIVE_campaign_recording == 'ALLFORCE') { document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; @@ -5710,8 +5727,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send Redirect command for live call to Manager sends phone name where call is going to // Covers the following types: XFER, VMAIL, ENTRY, CONF, PARK, FROMPARK, XfeRLOCAL, XfeRINTERNAL, XfeRBLIND, VfeRVMAIL - function mainxfer_send_redirect(taskvar,taskxferconf,taskserverip,taskdebugnote,taskdispowindow,tasklockedquick) + function mainxfer_send_redirect(taskvar,taskxferconf,taskserverip,taskdebugnote,taskdispowindow,tasklockedquick,MSRclick) { + if (MSRclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----mainxfer_send_redirect---" + taskvar + " " + taskxferconf + " " + taskserverip + " " + taskdebugnote + " " + taskdispowindow + " " + tasklockedquick + "|";} var XfeRSelecT = document.getElementById("XfeRGrouP"); var XfeR_GrouP = XfeRSelecT.value; var ADvalue = document.vicidial_form.xfernumber.value; @@ -5912,7 +5931,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var parkedby = protocol + "/" + extension; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectToPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + park_on_extension + "&ext_context=" + ext_context + "&ext_priority=1&extenName=park&parkedby=" + parkedby + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Grab Parked Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Grab Parked Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; @@ -5939,10 +5958,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectFromPark&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + dest_dialstring + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } customerparked=0; customerparkedcounter=0; @@ -5967,7 +5986,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (ivr_park_call=='ENABLED') { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"Grab IVR Parked Call\" />"; } customerparked=1; customerparkedcounter=0; @@ -5991,10 +6010,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectFromParkIVR&format=text&channel=" + redirectdestination + "&call_server_ip=" + redirectdestserverip + "&queryCID=" + queryCID + "&exten=" + dest_dialstring + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&campaign=" + campaign; - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } customerparked=0; customerparkedcounter=0; @@ -6174,8 +6193,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Finish the alternate dialing and move on to disposition the call - function ManualDialAltDonE() + function ManualDialAltDonE(MDDclick) { + if (MDDclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ManualDialAltDonE---|";} alt_phone_dialing=starting_alt_phone_dialing; alt_dial_active = 0; alt_dial_status_display = 0; @@ -6216,7 +6237,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) timer_alt_count=timer_alt_seconds; timer_alt_trigger=1; } - var man_status = " " + status_display_content; + var man_status = " " + status_display_content; document.getElementById("MainStatuSSpan").innerHTML = man_status; } } @@ -6279,7 +6300,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // alert("VICIDIAL Call log entered:\n" + document.vicidial_form.uniqueid.value); if ( (taskMDstage != "start") && (VDstop_rec_after_each_call == 1) ) { - var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; + var conf_rec_start_html = "\" border=\"0\" alt=\"Start Recording\" />"; if ( (LIVE_campaign_recording == 'NEVER') || (LIVE_campaign_recording == 'ALLFORCE') ) { document.getElementById("RecorDControl").innerHTML = "\" border=\"0\" alt=\"Start Recording\" />"; @@ -6450,6 +6471,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Request list of USERONLY callbacks for this agent function CalLBacKsLisTCheck() { + button_click_log = button_click_log + "" + SQLdate + "-----CalLBacKsLisTCheck---|"; var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) { @@ -6567,6 +6589,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // closes callback list screen function CalLBacKsLisTClose() { + button_click_log = button_click_log + "" + SQLdate + "-----CalLBacKsLisTClose---|"; if (auto_resume_precall == 'Y') { AutoDial_ReSume_PauSe("VDADready"); @@ -6580,6 +6603,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // closes call log display screen function CalLLoGVieWClose() { + button_click_log = button_click_log + "" + SQLdate + "-----CalLLoGVieWClose---|"; if (auto_resume_precall == 'Y') { AutoDial_ReSume_PauSe("VDADready"); @@ -6592,6 +6616,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // closes lead search screen function LeaDSearcHVieWClose() { + button_click_log = button_click_log + "" + SQLdate + "-----LeaDSearcHVieWClose---|"; if ( (auto_resume_precall == 'Y') && (inbound_lead_search < 1) ) { AutoDial_ReSume_PauSe("VDADready"); @@ -6605,6 +6630,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // closes contacts search screen function ContactSearcHVieWClose() { + button_click_log = button_click_log + "" + SQLdate + "-----ContactSearcHVieWClose---|"; ShoWGenDerPulldown(); hideDiv('SearcHContactsDisplaYBox'); } @@ -6614,6 +6640,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Open up a callback customer record as manual dial preview mode function new_callback_call(taskCBid,taskLEADid,taskCBalt) { + button_click_log = button_click_log + "" + SQLdate + "-----new_callback_call---" + taskCBid + " " + taskLEADid + " " + taskCBalt + "|"; if (waiting_on_dispo > 0) { alert_box("
code:" + agent_log_id + " - " + waiting_on_dispo + ""); @@ -6651,8 +6678,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Open page to enter details for a new manual dial lead - function NeWManuaLDiaLCalL(TVfast,TVphone_code,TVphone_number,TVlead_id,TVtype) + function NeWManuaLDiaLCalL(TVfast,TVphone_code,TVphone_number,TVlead_id,TVtype,NMCclick) { + if (NMCclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----NeWManuaLDiaLCalL---" + TVfast + " " + TVphone_code + " " + TVphone_number + " " + TVlead_id + " " + TVtype + "|";} var move_on=1; if ( (starting_dial_level != 0) && (dial_next_failed < 1) && ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) ) { @@ -6732,6 +6761,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Populate lead information from search while on inbound call function LeaDSearcHSelecT(LSSlead_id,LSStype) { + button_click_log = button_click_log + "" + SQLdate + "-----LeaDSearcHSelecT---" + LSSlead_id + " " + LSStype + "|"; var move_on=0; if (VD_live_customer_call==1) { @@ -6973,7 +7003,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -7003,7 +7033,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } // Build transfer pull-down list @@ -7156,8 +7186,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Insert the new manual dial as a lead and go to manual dial screen - function NeWManuaLDiaLCalLSubmiT(tempDiaLnow) + function NeWManuaLDiaLCalLSubmiT(tempDiaLnow,NMDclick) { + if (NMDclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----NeWManuaLDiaLCalLSubmiT---" + tempDiaLnow + "|";} if (waiting_on_dispo > 0) { alert_box("
" + agent_log_id + " - " + waiting_on_dispo + ""); @@ -7244,7 +7276,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Fast version of manual dial - function NeWManuaLDiaLCalLSubmiTfast() + function NeWManuaLDiaLCalLSubmiTfast() { var MDDiaLCodEform = document.vicidial_form.phone_code.value; var MDPhonENumbeRform = document.vicidial_form.phone_number.value; @@ -7285,8 +7317,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Toggle the no-dial flag - function NoDiaLSwitcH() + function NoDiaLSwitcH() { + button_click_log = button_click_log + "" + SQLdate + "-----NoDiaLSwitcH---|"; if (nocall_dial_flag == 'DISABLED') { nocall_dial_flag = 'ENABLED'; @@ -7415,15 +7448,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = " " + called3rdparty + " " + status_display_content; - document.getElementById("Leave3WayCall").innerHTML ="\" border=\"0\" alt=\"LEAVE 3-WAY CALL\" style=\"vertical-align:middle\" />"; + document.getElementById("Leave3WayCall").innerHTML ="\" border=\"0\" alt=\"LEAVE 3-WAY CALL\" style=\"vertical-align:middle\" />"; document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupXferLine").innerHTML ="\" border=\"0\" alt=\"Hangup Xfer Line\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupXferLine").innerHTML ="\" border=\"0\" alt=\"Hangup Xfer Line\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; xferchannellive=1; XDcheck = ''; @@ -7472,21 +7505,21 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "  "; - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; document.getElementById("VolumeUpSpan").innerHTML = "\" border=\"0\">"; document.getElementById("VolumeDownSpan").innerHTML = "\" border=\"0\">"; @@ -7497,7 +7530,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -7528,7 +7561,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) @@ -7584,8 +7617,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (taskCheckOR == 'YES') { - document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; } } } @@ -7807,8 +7840,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send the Manual Dial Next Number request - function ManualDialNext(mdnCBid,mdnBDleadid,mdnDiaLCodE,mdnPhonENumbeR,mdnStagE,mdVendorid,mdgroupalias,mdtype) + function ManualDialNext(mdnCBid,mdnBDleadid,mdnDiaLCodE,mdnPhonENumbeR,mdnStagE,mdVendorid,mdgroupalias,mdtype,MDNclick) { + if (MDNclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ManualDialNext---" + mdnCBid + " " + mdnBDleadid + " " + mdnDiaLCodE + " " + mdnPhonENumbeR + " " + mdnStagE + " " + mdVendorid + " " + mdgroupalias + " " + mdtype + "|";} UpdatESettingS(); if (waiting_on_dispo > 0) { @@ -7824,7 +7859,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (starting_dial_level == 0) { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -7832,7 +7867,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -7887,18 +7922,18 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (alt_phone_dialing == 1) { - var man_status = "Preview the Lead then or           or "; + var man_status = "Preview the Lead then or           or "; if (manual_preview_dial=='PREVIEW_ONLY') { - var man_status = "Preview the Lead then           or "; + var man_status = "Preview the Lead then           or "; } } else { - var man_status = "Preview the Lead then or "; + var man_status = "Preview the Lead then or "; if (manual_preview_dial=='PREVIEW_ONLY') { - var man_status = " "; + var man_status = " "; } } } @@ -7998,7 +8033,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (starting_dial_level == 0) { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8006,7 +8041,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8214,7 +8249,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) MD_channel_look=1; custchannellive=1; - document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -8315,8 +8350,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send the Manual Dial Skip - function ManualDialSkip() + function ManualDialSkip(MDSclick) { + if (MDSclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ManualDialSkip---|";} if (manual_dial_in_progress==1) { alert_box(""); @@ -8438,11 +8475,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; } else { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } } } @@ -8467,8 +8504,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send the Manual Dial Only - dial the previewed lead - function ManualDialOnly(taskaltnum) + function ManualDialOnly(taskaltnum,MDOclick) { + if (MDOclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ManualDialOnly---" + taskaltnum + "|";} UpdatESettingS(); in_lead_preview_state=0; inOUT = 'OUT'; @@ -8613,7 +8652,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = " " + status_display_number + " " + status_display_content + "   "; - document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; } if ( (LIVE_campaign_recording == 'ALLCALLS') || (LIVE_campaign_recording == 'ALLFORCE') ) {all_record = 'YES';} @@ -8693,8 +8732,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Set the client to READY and start looking for calls (VDADready, VDADpause) - function AutoDial_ReSume_PauSe(taskaction,taskagentlog,taskwrapup,taskstatuschange,temp_reason,temp_auto,temp_auto_code) + function AutoDial_ReSume_PauSe(taskaction,taskagentlog,taskwrapup,taskstatuschange,temp_reason,temp_auto,temp_auto_code,APRclick) { + if (APRclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----AutoDial_ReSume_PauSe---" + taskaction + " " + taskagentlog + " " + taskstatuschange + " " + temp_reason + " " + temp_auto + " " + temp_auto_code + "|";} var add_pause_code=''; if (taskaction == 'VDADready') { @@ -8713,7 +8754,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are active\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are active\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8732,7 +8773,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) { auto_dial_level=starting_dial_level; - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; } else { @@ -8902,6 +8943,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Alternate phone number change function alt_phone_change(APCphone,APCcount,APCleadID,APCactive) { + button_click_log = button_click_log + "" + SQLdate + "-----alt_phone_change---" + APCphone + " " + APCcount + " " + APCleadID + " " + APCactive + "|"; var EAactive_link = ''; if (APCactive == 'Y') @@ -9287,28 +9329,28 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " " + temp_status_display_ingroup + "  " + VDIC_fronter + " " + status_display_content; } - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -9338,7 +9380,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) @@ -9859,28 +9901,28 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("MainStatuSSpan").innerHTML = " " + dial_display_number + " " + custom_call_id + " " + temp_status_display_ingroup + "  " + VDIC_fronter + " " + status_display_content; } - document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; + document.getElementById("ParkControl").innerHTML ="\" border=\"0\" alt=\"Park Call\" />"; if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') ) { - document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; + document.getElementById("ivrParkControl").innerHTML ="\" border=\"0\" alt=\"IVR Park Call\" />"; } - document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; + document.getElementById("HangupControl").innerHTML = "\" border=\"0\" alt=\"Hangup Customer\" />"; - document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; - document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; + document.getElementById("LocalCloser").innerHTML = "\" border=\"0\" alt=\"LOCAL CLOSER\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindTransfer").innerHTML = "\" border=\"0\" alt=\"Dial Blind Transfer\" style=\"vertical-align:middle\" />"; - document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; + document.getElementById("DialBlindVMail").innerHTML = "\" border=\"0\" alt=\"Blind Transfer VMail Message\" style=\"vertical-align:middle\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = default_xfer_group;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (prepopulate_transfer_preset_enabled > 0) { @@ -9910,7 +9952,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (quick_transfer_button_locked > 0) {quick_transfer_button_orig = document.vicidial_form.xfernumber.value;} - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) @@ -10112,8 +10154,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // refresh or clear the SCRIPT frame contents - function RefresHScript(temp_wipe) + function RefresHScript(temp_wipe,RFSclick) { + if (RFSclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----RefresHScript---" + temp_wipe + "|";} if (temp_wipe == 'CLEAR') { document.getElementById("ScriptContents").innerHTML = ''; @@ -10269,46 +10313,50 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send hangup a second time from the dispo screen function DispoHanguPAgaiN() - { - form_cust_channel = AgaiNHanguPChanneL; - document.getElementById("callchannel").innerHTML = AgaiNHanguPChanneL; - document.vicidial_form.callserverip.value = AgaiNHanguPServeR; - lastcustchannel = AgaiNHanguPChanneL; - lastcustserverip = AgaiNHanguPServeR; - VD_live_call_secondS = AgainCalLSecondS; - CalLCID = AgaiNCalLCID; + { + button_click_log = button_click_log + "" + SQLdate + "-----DispoHanguPAgaiN---|"; + form_cust_channel = AgaiNHanguPChanneL; + document.getElementById("callchannel").innerHTML = AgaiNHanguPChanneL; + document.vicidial_form.callserverip.value = AgaiNHanguPServeR; + lastcustchannel = AgaiNHanguPChanneL; + lastcustserverip = AgaiNHanguPServeR; + VD_live_call_secondS = AgainCalLSecondS; + CalLCID = AgaiNCalLCID; - document.getElementById("DispoSelectHAspan").innerHTML = ""; + document.getElementById("DispoSelectHAspan").innerHTML = ""; - dialedcall_send_hangup(); - } + dialedcall_send_hangup(); + } // ################################################################################ // Send leave 3way call a second time from the dispo screen function DispoLeavE3wayAgaiN() - { - XDchannel = DispO3wayXtrAchannel; - document.vicidial_form.xfernumber.value = DispO3wayCalLxfernumber; - MDchannel = DispO3waychannel; - lastcustserverip = DispO3wayCalLserverip; + { + button_click_log = button_click_log + "" + SQLdate + "-----DispoLeavE3wayAgaiN---|"; + XDchannel = DispO3wayXtrAchannel; + document.vicidial_form.xfernumber.value = DispO3wayCalLxfernumber; + MDchannel = DispO3waychannel; + lastcustserverip = DispO3wayCalLserverip; - document.getElementById("DispoSelectHAspan").innerHTML = ""; + document.getElementById("DispoSelectHAspan").innerHTML = ""; - leave_3way_call('SECOND'); + leave_3way_call('SECOND'); - DispO3waychannel = ''; - DispO3wayXtrAchannel = ''; - DispO3wayCalLserverip = ''; - DispO3wayCalLxfernumber = ''; - DispO3wayCalLcamptail = ''; - } + DispO3waychannel = ''; + DispO3wayXtrAchannel = ''; + DispO3wayCalLserverip = ''; + DispO3wayCalLxfernumber = ''; + DispO3wayCalLcamptail = ''; + } // ################################################################################ // Start Hangup Functions for both - function bothcall_send_hangup() + function bothcall_send_hangup(BCHclick) { + if (BCHclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----bothcall_send_hangup---|";} xfer_agent_selected=0; if (lastcustchannel.length > 3) {dialedcall_send_hangup();} @@ -10318,8 +10366,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send Hangup command for customer call connected to the conference now to Manager - function dialedcall_send_hangup(dispowindow,hotkeysused,altdispo,nodeletevdac) + function dialedcall_send_hangup(dispowindow,hotkeysused,altdispo,nodeletevdac,DSHclick) { + if (DSHclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----dialedcall_send_hangup---|";} if (VDCL_group_id.length > 1) {var group = VDCL_group_id;} else @@ -10527,7 +10577,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } else { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; } reselect_alt_dial = 0; } @@ -10591,8 +10641,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Send Hangup command for 3rd party call connected to the conference now to Manager - function xfercall_send_hangup() + function xfercall_send_hangup(HANclick) { + if (HANclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----xfercall_send_hangup---|";} var xferchannel = document.vicidial_form.xferchannel.value; var xfer_channel = lastxferchannel; var process_post_hangup=0; @@ -10666,13 +10718,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // document.getElementById("Leave3WayCall").innerHTML ="\" border=\"0\" alt=\"LEAVE 3-WAY CALL\" />"; - document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; document.getElementById("HangupXferLine").innerHTML ="\" border=\"0\" alt=\"Hangup Xfer Line\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; } } @@ -10809,8 +10861,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Call Disposition Chooser panel - function DispoSelectContent_create(taskDSgrp,taskDSstage) + function DispoSelectContent_create(taskDSgrp,taskDSstage,DSCclick) { + if (DSCclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----DispoSelectContent_create---" + taskDSgrp + " " + taskDSstage + "|";} if (disable_dispo_screen > 0) { document.vicidial_form.DispoSelection.value = disable_dispo_status; @@ -10847,7 +10901,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (test_commmentsD.length > 0) {document.vicidial_form.comments.value = document.vicidial_form.dispo_comments.value;} - var dispo_comment_output = "
:
"; + var dispo_comment_output = "
:
"; dispo_comment_output = dispo_comment_output + "\n"; dispo_comment_output = dispo_comment_output + "
\n"; document.getElementById("DispoCommentsContent").innerHTML = dispo_comment_output; @@ -10876,11 +10930,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {CBflag = '';} if (taskDSgrp == VARstatuses[loop_ct]) { - dispo_HTML = dispo_HTML + "" + VARstatuses[loop_ct] + " - " + VARstatusnames[loop_ct] + " " + CBflag + "

"; + dispo_HTML = dispo_HTML + "" + VARstatuses[loop_ct] + " - " + VARstatusnames[loop_ct] + " " + CBflag + "

"; } else { - dispo_HTML = dispo_HTML + "" + VARstatuses[loop_ct] + " - " + VARstatusnames[loop_ct] + " " + CBflag + "

"; + dispo_HTML = dispo_HTML + "" + VARstatuses[loop_ct] + " - " + VARstatusnames[loop_ct] + " " + CBflag + "

"; } if (print_ct == VD_statuses_ct_half) {dispo_HTML = dispo_HTML + "
";} @@ -10911,8 +10965,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Pause Code Chooser panel - function PauseCodeSelectContent_create() + function PauseCodeSelectContent_create(PCSclick) { + if (PCSclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----PauseCodeSelectContent_create---|";} var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) { @@ -10944,7 +11000,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var loop_ct = 0; while (loop_ct < VD_pause_codes_ct) { - PauseCode_HTML = PauseCode_HTML + "" + VARpause_codes[loop_ct] + " - " + VARpause_code_names[loop_ct] + "

"; + PauseCode_HTML = PauseCode_HTML + "" + VARpause_codes[loop_ct] + " - " + VARpause_code_names[loop_ct] + "

"; loop_ct++; if (loop_ct == VD_pause_codes_ct_half) {PauseCode_HTML = PauseCode_HTML + "
";} @@ -10953,7 +11009,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if (agent_pause_codes_active=='FORCE') {var Go_BacK_LinK = '';} else - {var Go_BacK_LinK = "";} + {var Go_BacK_LinK = "";} PauseCode_HTML = PauseCode_HTML + "


" + Go_BacK_LinK; document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML; @@ -10970,6 +11026,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Open lead search form panel function OpeNSearcHForMDisplaYBox() { + button_click_log = button_click_log + "" + SQLdate + "-----OpeNSearcHForMDisplaYBox---|"; var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) @@ -11013,8 +11070,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Contacts Search span content - function generate_contacts_search() + function generate_contacts_search(CNTclick) { + if (CNTclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----generate_contacts_search---|";} HidEGenDerPulldown(); showDiv('SearcHContactsDisplaYBox'); } @@ -11022,8 +11081,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Presets Chooser span content - function generate_presets_pulldown() + function generate_presets_pulldown(PREclick) { + if (PREclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----generate_presets_pulldown---|";} showDiv('PresetsSelectBox'); Presets_HTML = ''; document.vicidial_form.PresetSelection.value = ''; @@ -11083,6 +11144,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Submit chosen Preset function PresetSelect_submit(taskpresetname,taskpresetnumber,taskpresetdtmf,taskhidenumber,taskclosesearch) { + button_click_log = button_click_log + "" + SQLdate + "-----PresetSelect_submit---" + taskpresetname + " " + taskpresetnumber + " " + taskpresetdtmf + " " + taskhidenumber + " " + taskclosesearch + "|"; if (taskclosesearch=='Y') { hideDiv('SearcHResultSContactsBox'); @@ -11109,6 +11171,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Generate the Group Alias Chooser panel function GroupAliasSelectContent_create(task3way) { + button_click_log = button_click_log + "" + SQLdate + "-----GroupAliasSelectContent_create---" + task3way + "|"; HidEGenDerPulldown(); showDiv('GroupAliasSelectBox'); WaitingForNextStep=1; @@ -11148,6 +11211,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Generate the Dial In-Group Chooser panel function ManuaLDiaLInGrouPSelectContent_create() { + button_click_log = button_click_log + "" + SQLdate + "-----ManuaLDiaLInGrouPSelectContent_create---|"; HidEGenDerPulldown(); showDiv('DiaLInGrouPSelectBox'); WaitingForNextStep=1; @@ -11180,14 +11244,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // open web form, then submit disposition function WeBForMDispoSelect_submit() { + button_click_log = button_click_log + "" + SQLdate + "-----WeBForMDispoSelect_submit---|"; leaving_threeway=0; blind_transfer=0; document.getElementById("callchannel").innerHTML = ''; document.vicidial_form.callserverip.value = ''; document.vicidial_form.xferchannel.value = ''; - document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; var DispoChoice = document.vicidial_form.DispoSelection.value; @@ -11219,8 +11284,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Update vicidial_list lead record with disposition selection - function DispoSelect_submit(temp_use_pause_code,temp_dispo_pause_code) + function DispoSelect_submit(temp_use_pause_code,temp_dispo_pause_code,DSPclick) { + if (DSPclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----DispoSelect_submit---|";} if (VDCL_group_id.length > 1) {var group = VDCL_group_id;} else @@ -11239,16 +11306,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.getElementById("callchannel").innerHTML = ''; document.vicidial_form.callserverip.value = ''; document.vicidial_form.xferchannel.value = ''; - document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; - document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; - document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; + document.getElementById("DialWithCustomer").innerHTML ="\" border=\"0\" alt=\"Dial With Customer\" style=\"vertical-align:middle\" />"; + document.getElementById("ParkCustomerDial").innerHTML ="\" border=\"0\" alt=\"Park Customer Dial\" style=\"vertical-align:middle\" />"; + document.getElementById("HangupBothLines").innerHTML ="\" border=\"0\" alt=\"Hangup Both Lines\" style=\"vertical-align:middle\" />"; var DispoChoice = document.vicidial_form.DispoSelection.value; if (DispoChoice.length < 1) {alert_box("");} else { - if (document.vicidial_form.lead_id.value == '') {alert_box("");} + if (document.vicidial_form.lead_id.value == '') + { + // alert_box(""); + waiting_on_dispo=0; + AgentDispoing = 0; + hideDiv('DispoSelectBox'); + hideDiv('DispoButtonHideA'); + hideDiv('DispoButtonHideB'); + hideDiv('DispoButtonHideC'); + document.getElementById("debugbottomspan").innerHTML = "" + document.vicidial_form.lead_id.value + "|" + DispoChoice + "\n" + } else { if (document.vicidial_form.DiaLAltPhonE.checked==true) @@ -11276,7 +11353,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) if ( (comments_callback_screen == 'ENABLED') || (comments_callback_screen == 'REPLACE_CB_NOTES') ) { - var cb_comment_output = "
:
"; + var cb_comment_output = "
:
"; cb_comment_output = cb_comment_output + "\n"; cb_comment_output = cb_comment_output + "
\n"; document.getElementById("CBCommentsContent").innerHTML = cb_comment_output; @@ -11643,8 +11720,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Submit the Pause Code - function PauseCodeSelect_submit(newpausecode) + function PauseCodeSelect_submit(newpausecode,PCSclick) { + if (PCSclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----PauseCodeSelect_submit---" + newpausecode + "|";} hideDiv('PauseCodeSelectBox'); ShoWGenDerPulldown(); @@ -11701,6 +11780,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Submit the Group Alias function GroupAliasSelect_submit(newgroupalias,newgroupcid,newusegroup) { + button_click_log = button_click_log + "" + SQLdate + "-----GroupAliasSelect_submit---" + newgroupalias + " " + newgroupcid + " " + newusegroup + "|"; hideDiv('GroupAliasSelectBox'); ShoWGenDerPulldown(); WaitingForNextStep=0; @@ -11720,6 +11800,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Submit the Dial In-Group function DiaLInGrouPSelect_submit(dialingroupid,dialingroupgo) { + button_click_log = button_click_log + "" + SQLdate + "-----DiaLInGrouPSelect_submit---" + dialingroupid + " " + dialingroupgo + "|"; hideDiv('DiaLInGrouPSelectBox'); ShoWGenDerPulldown(); WaitingForNextStep=0; @@ -11859,8 +11940,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.vicidial_form.xfername.value = 'D5'; } - function DtMf_PreSet_a_DiaL(taskquiet) + function DtMf_PreSet_a_DiaL(taskquiet,DTAclick) { + if (DTAclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----DtMf_PreSet_a_DiaL---|";} document.vicidial_form.conf_dtmf.value = CalL_XC_a_Dtmf; document.vicidial_form.xfernumber.value = CalL_XC_a_NuMber; var session_id_dial = session_id; @@ -11868,8 +11951,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) {session_id_dial = '7' + session_id}; basic_originate_call(CalL_XC_a_NuMber,'NO','YES',session_id_dial,'YES','','1','0'); } - function DtMf_PreSet_b_DiaL(taskquiet) + function DtMf_PreSet_b_DiaL(taskquiet,DTBclick) { + if (DTBclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----DtMf_PreSet_b_DiaL---|";} document.vicidial_form.conf_dtmf.value = CalL_XC_b_Dtmf; document.vicidial_form.xfernumber.value = CalL_XC_b_NuMber; var session_id_dial = session_id; @@ -11941,12 +12026,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } function CustomerGoneOK() { + button_click_log = button_click_log + "" + SQLdate + "-----CustomerGoneOK---|"; hideDiv('CustomerGoneBox'); WaitingForNextStep=0; custchannellive=0; } function CustomerGoneHangup() { + button_click_log = button_click_log + "" + SQLdate + "-----CustomerGoneHangup---|"; hideDiv('CustomerGoneBox'); WaitingForNextStep=0; custchannellive=0; @@ -11963,12 +12050,14 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } function NoneInSessionOK() { + button_click_log = button_click_log + "" + SQLdate + "-----NoneInSessionOK---|"; hideDiv('NoneInSessionBox'); WaitingForNextStep=0; nochannelinsession=0; } function NoneInSessionCalL(tempstate) { + button_click_log = button_click_log + "" + SQLdate + "-----NoneInSessionCalL---|"; hideDiv('NoneInSessionBox'); WaitingForNextStep=0; nochannelinsession=0; @@ -12030,8 +12119,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Closer In Group Chooser panel - function CloserSelectContent_create() + function CloserSelectContent_create(CLScreate) { + if (CLScreate=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----CloserSelectContent_create---|";} HidEGenDerPulldown(); if ( (VU_agent_choose_ingroups == '1') && (manager_ingroups_set < 1) ) { @@ -12085,6 +12176,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Move a Closer In Group record to the selected column or reverse function CloserSelect_change(taskCSgrp,taskCSchange) { + button_click_log = button_click_log + "" + SQLdate + "-----CloserSelect_change---" + taskCSgrp + " " + taskCSchange + "|"; var CloserSelectListValue = document.vicidial_form.CloserSelectList.value; var CSCchange = 0; var regCS = new RegExp(" " + taskCSgrp + " ","ig"); @@ -12153,8 +12245,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Update vicidial_live_agents record with closer in group choices - function CloserSelect_submit() + function CloserSelect_submit(CLSsubmit) { + if (CLSsubmit=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----CloserSelect_submit---|";} if (dial_method == "INBOUND_MAN") {document.vicidial_form.CloserSelectBlended.checked=false;} if (document.vicidial_form.CloserSelectBlended.checked==true) @@ -12220,8 +12314,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Generate the Territory Chooser panel - function TerritorySelectContent_create() + function TerritorySelectContent_create(TERcreate) { + if (TERcreate=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----TerritorySelectContent_create---|";} if (agent_select_territories == '1') { HidEGenDerPulldown(); @@ -12258,6 +12354,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Move a Territory record to the selected column or reverse function TerritorySelect_change(taskTERRgrp,taskTERRchange) { + button_click_log = button_click_log + "" + SQLdate + "-----TerritorySelect_change---" + taskTERRgrp + " " + taskTERRchange + "|"; var TerritorySelectListValue = document.vicidial_form.TerritorySelectList.value; var TERRchange = 0; var regTERR = new RegExp(" " + taskTERRgrp + " ","ig"); @@ -12314,6 +12411,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Enable or Disable manual dial queue calls function ManualQueueChoiceChange(task_amqc) { + button_click_log = button_click_log + "" + SQLdate + "-----ManualQueueChoiceChange---" + task_amqc + "|"; AllowManualQueueCalls = task_amqc; var TerritorySelectChoices = document.vicidial_form.TerritorySelectList.value; @@ -12325,8 +12423,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // ################################################################################ // Update vicidial_live_agents record with territory choices - function TerritorySelect_submit() + function TerritorySelect_submit(TERsubmit) { + if (TERsubmit=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----TerritorySelect_submit---|";} var TerritorySelectChoices = document.vicidial_form.TerritorySelectList.value; if (agent_select_territories == "MGRLOCK") @@ -12419,6 +12519,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Log the user out of the system when they close their browser while logged in function BrowserCloseLogout() { + button_click_log = button_click_log + "" + SQLdate + "-----BrowserCloseLogout---|"; if (logout_stop_timeouts < 1) { if (VDRP_stage != 'PAUSED') @@ -12436,6 +12537,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Normal logout with check for pause stage first function NormalLogout() { + button_click_log = button_click_log + "" + SQLdate + "-----NormalLogout---|"; if (logout_stop_timeouts < 1) { var pausetrigger=''; @@ -12453,6 +12555,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) // Log the user out of the system, if active call or active dial is occuring, don't let them. function LogouT(tempreason,temppause) { + button_click_log = button_click_log + "" + SQLdate + "-----LogouT---" + tempreason + " " + temppause + "|"; if (MD_channel_look==1) {alert("");} else @@ -12552,6 +12655,7 @@ if ($useIE > 0) { // document.vicidial_form.inert_button.focus(); // document.vicidial_form.inert_button.blur(); + button_click_log = button_click_log + "" + SQLdate + "-----hotkeypress---" + HKdispo + "|"; CustomerData_update(); var HKdispo_ary = HKdispo.split(" ----- "); if ( (HKdispo_ary[0] == 'ALTPH2') || (HKdispo_ary[0] == 'ADDR3') ) @@ -12654,6 +12758,7 @@ else document.inert_form.inert_button.focus(); document.inert_form.inert_button.blur(); } + button_click_log = button_click_log + "" + SQLdate + "-----hotkeypress---" + HKdispo + "|"; CustomerData_update(); var HKdispo_ary = HKdispo.split(" ----- "); if ( (HKdispo_ary[0] == 'ALTPH2') || (HKdispo_ary[0] == 'ADDR3') ) @@ -13501,6 +13606,7 @@ function phone_number_format(formatphone) { // Grab the call in queue and bring it into the session function callinqueuegrab(CQauto_call_id) { + button_click_log = button_click_log + "" + SQLdate + "-----callinqueuegrab---" + CQauto_call_id + "|"; if (CQauto_call_id > 0) { var move_on=1; @@ -13620,6 +13726,7 @@ function phone_number_format(formatphone) { // Open or close the callsinqueue view bottombar function show_calls_in_queue(CQoperation) { + button_click_log = button_click_log + "" + SQLdate + "-----show_calls_in_queue---" + CQoperation + "|"; if (CQoperation=='SHOW') { document.getElementById("callsinqueuelink").innerHTML = ""; @@ -13643,6 +13750,7 @@ function phone_number_format(formatphone) { { if (AVlocation=='AgentViewSpan') { + button_click_log = button_click_log + "" + SQLdate + "-----AgentsViewOpen---" + AVlocation + " " + AVoperation + "|"; document.getElementById("AgentViewLink").innerHTML = " -"; agent_status_view_active=1; } @@ -13652,6 +13760,7 @@ function phone_number_format(formatphone) { { if (AVlocation=='AgentViewSpan') { + button_click_log = button_click_log + "" + SQLdate + "-----AgentsViewOpen---" + AVlocation + " " + AVoperation + "|"; document.getElementById("AgentViewLink").innerHTML = " +"; agent_status_view_active=0; } @@ -13664,6 +13773,7 @@ function phone_number_format(formatphone) { // Open or close the webphone view sidebar function webphoneOpen(WVlocation,WVoperation) { + button_click_log = button_click_log + "" + SQLdate + "-----webphoneOpen---" + WVlocation + " " + WVoperation + "|"; if (WVoperation=='open') { document.getElementById("webphoneLink").innerHTML = "   -"; @@ -13681,6 +13791,7 @@ function phone_number_format(formatphone) { // Populate the number to dial field with the selected user ID function AgentsXferSelect(AXuser,AXlocation) { + button_click_log = button_click_log + "" + SQLdate + "-----AgentsXferSelect---" + AXuser + " " + AXlocation + "|"; xfer_select_agents_active=0; document.getElementById('AgentXferViewSelect').innerHTML = ''; hideDiv('AgentXferViewSpan'); @@ -13713,6 +13824,7 @@ function phone_number_format(formatphone) { // function for number to dial for AGENTDIRECT in-group transfers function XferAgentSelectLaunch() { + button_click_log = button_click_log + "" + SQLdate + "-----XferAgentSelectLaunch---|"; var XfeRSelecT = document.getElementById("XfeRGrouP"); var XScheck = XfeRSelecT.value if (XScheck.match(/AGENTDIRECT/i)) @@ -13730,6 +13842,7 @@ function phone_number_format(formatphone) { // Call ReQueue call back to AGENTDIRECT queue launch function call_requeue_launch() { + button_click_log = button_click_log + "" + SQLdate + "-----call_requeue_launch---|"; document.vicidial_form.xfernumber.value = user; // Build transfer pull-down list @@ -13761,6 +13874,7 @@ function phone_number_format(formatphone) { // View Customer lead information function VieWLeaDInfO(VLI_lead_id,VLI_cb_id,VLI_inbound_lead_search) { + button_click_log = button_click_log + "" + SQLdate + "-----VieWLeaDInfO---" + VLI_lead_id + " " + VLI_cb_id + " " + VLI_inbound_lead_search + "|"; showDiv('LeaDInfOBox'); var xmlhttp=false; @@ -13805,6 +13919,7 @@ function phone_number_format(formatphone) { // Refresh the call log display function VieWCalLLoG(logdate,formdate) { + button_click_log = button_click_log + "" + SQLdate + "-----VieWCalLLoG---" + logdate + " " + formdate + "|"; var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) { @@ -13893,6 +14008,7 @@ function phone_number_format(formatphone) { // Gather and display contacts search data function ContactSearchSubmit() { + button_click_log = button_click_log + "" + SQLdate + "-----ContactSearchSubmit---|"; showDiv('SearcHResultSContactsBox'); document.getElementById('SearcHResultSContactsSpan').innerHTML = "\n"; @@ -13938,8 +14054,10 @@ function phone_number_format(formatphone) { // ################################################################################ // Reset contact search form - function ContactSearchReset() + function ContactSearchReset(CNTreset) { + if (CNTreset=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ContactSearchReset---|";} document.vicidial_form.contacts_phone_number.value=''; document.vicidial_form.contacts_first_name.value=''; document.vicidial_form.contacts_last_name.value=''; @@ -13955,6 +14073,7 @@ function phone_number_format(formatphone) { // Gather and display lead search data function LeadSearchSubmit() { + button_click_log = button_click_log + "" + SQLdate + "-----LeadSearchSubmit---|"; if ( ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) && (inbound_lead_search < 1) ) { alert_box(""); @@ -14016,6 +14135,7 @@ function phone_number_format(formatphone) { // Reset lead search form function LeadSearchReset() { + button_click_log = button_click_log + "" + SQLdate + "-----LeadSearchReset---|"; document.vicidial_form.search_phone_number.value=''; document.vicidial_form.search_lead_id.value=''; document.vicidial_form.search_vendor_lead_code.value=''; @@ -14031,6 +14151,7 @@ function phone_number_format(formatphone) { // Hide manual dial form function ManualDialHide() { + button_click_log = button_click_log + "" + SQLdate + "-----ManualDialHide---|"; if (auto_resume_precall == 'Y') { AutoDial_ReSume_PauSe("VDADready"); @@ -14049,6 +14170,7 @@ function phone_number_format(formatphone) { // Refresh the lead notes display function VieWNotesLoG(logframe) { + button_click_log = button_click_log + "" + SQLdate + "-----VieWNotesLoG---" + logframe + "|"; showDiv('CalLNotesDisplaYBox'); var xmlhttp=false; @@ -14134,8 +14256,10 @@ function phone_number_format(formatphone) { // ################################################################################ // Refresh the FORM content - function FormContentsLoad() + function FormContentsLoad(FRMrefresh) { + if (FRMrefresh=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----FormContentsLoad---|";} var form_list_id = document.vicidial_form.list_id.value; var form_entry_list_id = document.vicidial_form.entry_list_id.value; if (form_entry_list_id.length > 2) @@ -14147,8 +14271,10 @@ function phone_number_format(formatphone) { // ################################################################################ // Refresh the EMAIL content - function EmailContentsLoad() + function EmailContentsLoad(EMLrefresh) { + if (EMLrefresh=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----EmailContentsLoad---|";} var form_list_id = document.vicidial_form.list_id.value; var form_entry_list_id = document.vicidial_form.entry_list_id.value; if (form_entry_list_id.length > 2) @@ -14163,6 +14289,7 @@ function phone_number_format(formatphone) { // Move the Dispo frame out of the way and change the link to maximize function DispoMinimize() { + button_click_log = button_click_log + "" + SQLdate + "-----DispoMinimize---|"; showDiv('DispoButtonHideA'); showDiv('DispoButtonHideB'); showDiv('DispoButtonHideC'); @@ -14175,6 +14302,7 @@ function phone_number_format(formatphone) { // Move the Dispo frame to the top and change the link to minimize function DispoMaximize() { + button_click_log = button_click_log + "" + SQLdate + "-----DispoMaximize---|"; document.getElementById("DispoSelectBox").style.top = '1px'; document.getElementById("DispoSelectMaxMin").innerHTML = " "; hideDiv('DispoButtonHideA'); @@ -14187,6 +14315,7 @@ function phone_number_format(formatphone) { // Trigger a pause on the next dispo screen only function next_call_pause_click() { + button_click_log = button_click_log + "" + SQLdate + "-----next_call_pause_click---|"; document.vicidial_form.DispoSelectStop.checked=true; document.getElementById("NexTCalLPausE").innerHTML = ""; } @@ -14196,6 +14325,7 @@ function phone_number_format(formatphone) { // Show the groups selection span function OpeNGrouPSelectioN() { + button_click_log = button_click_log + "" + SQLdate + "-----OpeNGrouPSelectioN---|"; var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) { @@ -14228,6 +14358,7 @@ function phone_number_format(formatphone) { // Show the territories selection span function OpeNTerritorYSelectioN() { + button_click_log = button_click_log + "" + SQLdate + "-----OpeNTerritorYSelectioN---|"; var move_on=1; if ( (AutoDialWaiting == 1) || (VD_live_customer_call==1) || (alt_dial_active==1) || (MD_channel_look==1) || (in_lead_preview_state==1) ) { @@ -14252,6 +14383,7 @@ function phone_number_format(formatphone) { // Hide the CBcommentsBox span upon click function CBcommentsBoxhide() { + button_click_log = button_click_log + "" + SQLdate + "-----CBcommentsBoxhide---|"; CBentry_time = ''; CBcallback_time = ''; CBuser = ''; @@ -14268,6 +14400,7 @@ function phone_number_format(formatphone) { // Hide the EAcommentsBox span upon click function EAcommentsBoxhide(minimizetask) { + button_click_log = button_click_log + "" + SQLdate + "-----EAcommentsBoxhide---" + minimizetask + "|"; hideDiv('EAcommentsBox'); if (minimizetask=='YES') {showDiv('EAcommentsMinBox');} @@ -14280,6 +14413,7 @@ function phone_number_format(formatphone) { // Show the EAcommentsBox span upon click function EAcommentsBoxshow() { + button_click_log = button_click_log + "" + SQLdate + "-----EAcommentsBoxshow---|"; showDiv('EAcommentsBox'); hideDiv('EAcommentsMinBox'); } @@ -14289,6 +14423,7 @@ function phone_number_format(formatphone) { // Populating the date field in the callback frame prior to submission function CB_date_pick(taskdate) { + button_click_log = button_click_log + "" + SQLdate + "-----CB_date_pick---" + taskdate + "|"; document.vicidial_form.CallBackDatESelectioN.value = taskdate; document.getElementById("CallBackDatEPrinT").innerHTML = taskdate; } @@ -14298,6 +14433,7 @@ function phone_number_format(formatphone) { // Submitting the callback date and time to the system function CallBackDatE_submit() { + button_click_log = button_click_log + "" + SQLdate + "-----CallBackDatE_submit---|"; CallBackDatEForM = document.vicidial_form.CallBackDatESelectioN.value; CallBackCommenTs = document.vicidial_form.CallBackCommenTsField.value; if (CallBackDatEForM.length < 2) @@ -14542,6 +14678,7 @@ function phone_number_format(formatphone) { // Finish the wrapup timer early function WrapupFinish() { + button_click_log = button_click_log + "" + SQLdate + "-----WrapupFinish---|"; wrapup_counter=999; } @@ -14550,6 +14687,7 @@ function phone_number_format(formatphone) { // Finish the wrapup timer on the hotkeys screen early function HKWrapupFinish() { + button_click_log = button_click_log + "" + SQLdate + "-----HKWrapupFinish---|"; HKdispo_display=2; } @@ -14677,7 +14815,7 @@ function phone_number_format(formatphone) { if ( (agent_pause_codes_active=='Y') || (agent_pause_codes_active=='FORCE') ) { - document.getElementById("PauseCodeLinkSpan").innerHTML = ""; + document.getElementById("PauseCodeLinkSpan").innerHTML = ""; } if (VICIDiaL_allow_closers < 1) { @@ -14813,7 +14951,7 @@ function phone_number_format(formatphone) { if (document.vicidial_form.DiaLAltPhonE.checked==true) { reselect_alt_dial = 1; - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"Dial Next Number\" />"; document.getElementById("MainStatuSSpan").innerHTML = ""; } @@ -15428,6 +15566,7 @@ function phone_number_format(formatphone) { function conf_channels_detail(divvar) { + button_click_log = button_click_log + "" + SQLdate + "-----conf_channels_detail---" + divvar + "|"; if (divvar == 'SHOW') { conf_channels_xtra_display = 1; @@ -15461,53 +15600,57 @@ function phone_number_format(formatphone) { } } - function ViewComments(VCommstate,VCforcehide,VCspanname) + function ViewComments(VCommstate,VCforcehide,VCspanname,VCMclick) { + if (VCMclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ViewComments---" + VCommstate + " " + VCforcehide + " " + VCspanname + "|";} if ( (VCommstate == 'ON') ) { showDiv('ViewCommentsBox'); if ( (qc_comment_history == 'CLICK_ALLOW_MINIMIZE') || (qc_comment_history == 'AUTO_OPEN_ALLOW_MINIMIZE') ) { document.getElementById("ViewCommentsBox").style.top = '350px'; - document.getElementById("ViewCommentsShowHide").innerHTML = " - "; + document.getElementById("ViewCommentsShowHide").innerHTML = " - "; } //view_comments_active = 1; - document.getElementById("viewcommentsdisplay").innerHTML = "\" />"; + document.getElementById("viewcommentsdisplay").innerHTML = "\" />"; if (comments_all_tabs == 'ENABLED') - {document.getElementById("otherviewcommentsdisplay").innerHTML = "\" />";} + {document.getElementById("otherviewcommentsdisplay").innerHTML = "\" />";} if (VCspanname == 'dispo') - {document.getElementById("dispoviewcommentsdisplay").innerHTML = "\" />";} + {document.getElementById("dispoviewcommentsdisplay").innerHTML = "\" />";} if (VCspanname == 'cb') - {document.getElementById("cbviewcommentsdisplay").innerHTML = "\" />";} + {document.getElementById("cbviewcommentsdisplay").innerHTML = "\" />";} } else { if ( (qc_comment_history == 'CLICK_ALLOW_MINIMIZE') || (qc_comment_history == 'AUTO_OPEN_ALLOW_MINIMIZE') ) { document.getElementById("ViewCommentsBox").style.top = 'px'; - document.getElementById("ViewCommentsShowHide").innerHTML = ""; + document.getElementById("ViewCommentsShowHide").innerHTML = ""; if (VCforcehide == 'OFF') {hideDiv('ViewCommentsBox');} } else {hideDiv('ViewCommentsBox');} //view_comments_active = 0; - document.getElementById("viewcommentsdisplay").innerHTML = ""; + document.getElementById("viewcommentsdisplay").innerHTML = ""; document.vicidial_form.ViewCommentButton.value = document.vicidial_form.audit_comments_button.value; if (comments_all_tabs == 'ENABLED') { - document.getElementById("otherviewcommentsdisplay").innerHTML = ""; + document.getElementById("otherviewcommentsdisplay").innerHTML = ""; document.vicidial_form.OtherViewCommentButton.value = document.vicidial_form.audit_comments_button.value; } if (VCspanname == 'dispo') - {document.getElementById("dispoviewcommentsdisplay").innerHTML = "";} + {document.getElementById("dispoviewcommentsdisplay").innerHTML = "";} if (VCspanname == 'cb') - {document.getElementById("cbviewcommentsdisplay").innerHTML = "";} + {document.getElementById("cbviewcommentsdisplay").innerHTML = "";} } } - function ShoWTransferMain(showxfervar,showoffvar) + function ShoWTransferMain(showxfervar,showoffvar,SXMclick) { + if (SXMclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ShoWTransferMain---" + showxfervar + " " + showoffvar + "|";} if (VU_vicidial_transfers == '1') { XferAgentSelectLink(); @@ -15522,7 +15665,7 @@ function phone_number_format(formatphone) { document.getElementById("TransferMain").style.top = temp_xfer_height; HKbutton_allowed = 0; showDiv('TransferMain'); - document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; if ( (quick_transfer_button_enabled > 0) && (quick_transfer_button_locked < 1) ) {document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />";} if (custom_3way_button_transfer_enabled > 0) @@ -15535,15 +15678,15 @@ function phone_number_format(formatphone) { hideDiv('agentdirectlink'); if (showoffvar == 'YES') { - document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; + document.getElementById("XferControl").innerHTML = "\" border=\"0\" alt=\"Transfer - Conference\" />"; if ( (quick_transfer_button == 'IN_GROUP') || (quick_transfer_button == 'LOCKED_IN_GROUP') ) { - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if ( (quick_transfer_button == 'PRESET_1') || (quick_transfer_button == 'PRESET_2') || (quick_transfer_button == 'PRESET_3') || (quick_transfer_button == 'PRESET_4') || (quick_transfer_button == 'PRESET_5') || (quick_transfer_button == 'LOCKED_PRESET_1') || (quick_transfer_button == 'LOCKED_PRESET_2') || (quick_transfer_button == 'LOCKED_PRESET_3') || (quick_transfer_button == 'LOCKED_PRESET_4') || (quick_transfer_button == 'LOCKED_PRESET_5') ) { - document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; + document.getElementById("QuickXfer").innerHTML = "\" border=\"0\" alt=\"QUICK TRANSFER\" />"; } if (custom_3way_button_transfer_enabled > 0) { @@ -15576,8 +15719,10 @@ function phone_number_format(formatphone) { } } - function MainPanelToFront(resumevar) + function MainPanelToFront(resumevar,MPFclick) { + if (MPFclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----MainPanelToFront---" + resumevar + "|";} document.getElementById("MainTable").style.backgroundColor=""; document.getElementById("MaiNfooter").style.backgroundColor=""; var CBMPheight = 'px'; @@ -15633,7 +15778,7 @@ function phone_number_format(formatphone) { { if (dial_method == "INBOUND_MAN") { - document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; + document.getElementById("DiaLControl").innerHTML = "\" border=\"0\" alt=\"You are paused\" />
\" border=\"0\" alt=\"Dial Next Number\" />"; if (manual_dial_preview == 1) {buildDiv('DiaLLeaDPrevieW');} } @@ -15648,8 +15793,10 @@ function phone_number_format(formatphone) { document.getElementById("MainStatuSSpan").style.background = panel_bgcolor; } - function ScriptPanelToFront() + function ScriptPanelToFront(SPFclick) { + if (SPFclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----ScriptPanelToFront---|";} var CBSPheight = 'px'; document.getElementById("CallbacksButtons").style.top = CBSPheight; document.getElementById("CallbacksButtons").style.left = '340px'; @@ -15675,8 +15822,10 @@ function phone_number_format(formatphone) { HidEGenDerPulldown(); } - function FormPanelToFront() + function FormPanelToFront(FPFclick) { + if (FPFclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----FormPanelToFront---|";} var CBFPheight = 'px'; document.getElementById("CallbacksButtons").style.top = CBFPheight; document.getElementById("CallbacksButtons").style.left = '340px'; @@ -15699,8 +15848,10 @@ function phone_number_format(formatphone) { HidEGenDerPulldown(); } - function EmailPanelToFront() + function EmailPanelToFront(EPFclick) { + if (EPFclick=='YES') + {button_click_log = button_click_log + "" + SQLdate + "-----EmailPanelToFront---|";} var CBFPheight = 'px'; document.getElementById("CallbacksButtons").style.top = CBFPheight; document.getElementById("CallbacksButtons").style.left = '340px'; @@ -15813,13 +15964,13 @@ $zi=2; - - + + 0) - {echo "\n";} + {echo "\n";} ?> 0) - {echo "\n";} + {echo "\n";} ?> @@ -15850,7 +16001,7 @@ $zi=2; @@ -16087,12 +16238,12 @@ $zi=2; echo "\n"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; } else { - echo "$label_comments:
+ echo "$label_comments:
" alt="MAIN" width="115px" height="30px" border="0" />" alt="SCRIPT" width="90px" height="30px" border="0" />" alt="MAIN" width="115px" height="30px" border="0" />" alt="SCRIPT" width="90px" height="30px" border="0" /> \"FORM\"\"FORM\"\"EMAIL\"\"EMAIL\"          " name="livecall" alt="Live Call" width="109px" height="30px" border="0" />
- " border="0" alt="Dial Next Number" />
+ " border="0" alt="Dial Next Number" />

@@ -15870,7 +16021,7 @@ $zi=2;
- " border="0" alt="Start Recording" />
+ " border="0" alt="Start Recording" />
" width="145px" height="16px" border="0" />
" border="0" alt="Web Form" />
" width="145px" height="16px" border="0" />
" border="0" alt="Hangup Customer" />
" width="145px" height="16px" border="0" />
-
+
"; if ( ($multi_line_comments) ) {echo "\n";} @@ -16141,7 +16292,7 @@ $zi=2; -      
+      
@@ -16189,9 +16340,9 @@ $zi=2; "._QXZ("D1 - DIAL")."\n"; + echo ""._QXZ("D1 - DIAL")."\n"; echo "   \n"; - echo ""._QXZ("D2 - DIAL")."\n"; + echo ""._QXZ("D2 - DIAL")."\n"; } else {echo "
\n";} ?> @@ -16222,7 +16373,7 @@ if ($view_calls_in_queue > 0) { $zi++; echo " @@ -16407,7 +16558,7 @@ if ($agent_display_dialable_leads > 0) @@ -16415,15 +16566,15 @@ if ($agent_display_dialable_leads > 0)
\n"; - echo "$label_comments:
+ echo "$label_comments:
"; if ( ($multi_line_comments) ) {echo "\n";} @@ -16287,7 +16438,7 @@ if ($agent_display_dialable_leads > 0) - + @@ -16307,11 +16458,11 @@ if ($agent_display_dialable_leads > 0) - + - + @@ -16376,7 +16527,7 @@ if ($agent_display_dialable_leads > 0)   - " border="0" alt="Hangup Both Lines" style="vertical-align:middle" /> + " border="0" alt="Hangup Both Lines" style="vertical-align:middle" />
- " border="0" alt="LEAVE 3-WAY CALL" style="vertical-align:middle" /> + " border="0" alt="LEAVE 3-WAY CALL" style="vertical-align:middle" />
" border="0" alt="Dial Blind Transfer" style="vertical-align:middle" />   - " border="0" alt="Dial With Customer" style="vertical-align:middle" /> + " border="0" alt="Dial With Customer" style="vertical-align:middle" />   - " border="0" alt="Park Customer Dial" style="vertical-align:middle" /> + " border="0" alt="Park Customer Dial" style="vertical-align:middle" />   - " border="0" alt="Presets Button" style="vertical-align:middle" /> + " border="0" alt="Presets Button" style="vertical-align:middle" /> 0) if ( ($enable_xfer_presets=='CONTACTS') and ($VU_preset_contact_search != 'DISABLED') ) { ?> - " border="0" alt="Contacts Button" style="vertical-align:middle" /> + " border="0" alt="Contacts Button" style="vertical-align:middle" /> 0)

- | - + | +



  @@ -16669,7 +16820,7 @@ if ($agent_display_dialable_leads > 0) px height='px' cellpadding=3 cellspacing=4> - +
   
@@ -16789,9 +16940,9 @@ if ($agent_display_dialable_leads > 0)

- +                 - +                
@@ -16813,8 +16964,8 @@ if ($agent_display_dialable_leads > 0) - | - + | +



 
@@ -16827,8 +16978,8 @@ if ($agent_display_dialable_leads > 0) ?>
- | - + | +



 
@@ -16891,7 +17042,7 @@ if ($agent_display_dialable_leads > 0) -
            +
           

  diff --git a/agc_2-X/trunk/www/agc/voicemail_check.php b/agc_2-X/trunk/www/agc/voicemail_check.php index 6429a3ab..d77c1934 100644 --- a/agc_2-X/trunk/www/agc/voicemail_check.php +++ b/agc_2-X/trunk/www/agc/voicemail_check.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2015 Matt Florell LICENSE: AGPLv2 # # This script is designed purely to check whether the voicemail box on the server defined has new and old messages # This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table @@ -29,10 +29,14 @@ # 140811-0801 - Changed to use QXZ function for echoing text # 141118-1240 - Formatting changes for QXZ output # 141216-1902 - Added language settings lookups and user/pass variable standardization +# 150723-1711 - Added ajax logging # -$version = '0.0.12'; -$build = '141216-1902'; +$version = '0.0.13'; +$build = '150723-1711'; +$php_script = 'voicemail_check.php'; +$SSagent_debug_logging=0; +$startMS = microtime(); require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -79,7 +83,7 @@ if ($sl_ct > 0) $VUselected_language = $row[0]; } -$stmt = "SELECT use_non_latin,enable_languages,language_method FROM system_settings;"; +$stmt = "SELECT use_non_latin,enable_languages,language_method,agent_debug_logging FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} @@ -90,6 +94,7 @@ if ($qm_conf_ct > 0) $non_latin = $row[0]; $SSenable_languages = $row[1]; $SSlanguage_method = $row[2]; + $SSagent_debug_logging = $row[3]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -103,6 +108,13 @@ $auth=0; $auth_message = user_authorization($user,$pass,'',0,1,0); if ($auth_message == 'GOOD') {$auth=1;} +if (strlen($SSagent_debug_logging) > 1) + { + if ($SSagent_debug_logging == "$user") + {$SSagent_debug_logging=1;} + else + {$SSagent_debug_logging=0;} + } if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0)) { @@ -178,7 +190,8 @@ if ($format=='debug') echo "\n"; echo "\n\n\n"; } - + +if ($SSagent_debug_logging > 0) {vicidial_ajax_log($NOW_TIME,$startMS,$link,$ACTION,$php_script,$user,$stage,$lead_id,$session_name,$stmt);} exit; ?> diff --git a/agc_2-X/trunk/www/vicidial/AST_agent_debug_log_report.php b/agc_2-X/trunk/www/vicidial/AST_agent_debug_log_report.php new file mode 100644 index 00000000..5bbca7c4 --- /dev/null +++ b/agc_2-X/trunk/www/vicidial/AST_agent_debug_log_report.php @@ -0,0 +1,464 @@ + LICENSE: AGPLv2 +# +# CHANGES +# 150724-0740 - First build +# + +$startMS = microtime(); + +require("dbconnect_mysqli.php"); +require("functions.php"); + +$report_name='Agent Debug Log Report'; + +$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER']; +$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; +$PHP_SELF=$_SERVER['PHP_SELF']; +if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];} + elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];} +if (isset($_GET["query_date_D"])) {$query_date_D=$_GET["query_date_D"];} + elseif (isset($_POST["query_date_D"])) {$query_date_D=$_POST["query_date_D"];} +if (isset($_GET["query_date_T"])) {$query_date_T=$_GET["query_date_T"];} + elseif (isset($_POST["query_date_T"])) {$query_date_T=$_POST["query_date_T"];} +if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];} + elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];} +if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];} + elseif (isset($_POST["file_download"])) {$file_download=$_POST["file_download"];} +if (isset($_GET["lower_limit"])) {$lower_limit=$_GET["lower_limit"];} + elseif (isset($_POST["lower_limit"])) {$lower_limit=$_POST["lower_limit"];} +if (isset($_GET["upper_limit"])) {$upper_limit=$_GET["upper_limit"];} + elseif (isset($_POST["upper_limit"])) {$upper_limit=$_POST["upper_limit"];} +if (isset($_GET["DB"])) {$DB=$_GET["DB"];} + elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["submit"])) {$submit=$_GET["submit"];} + elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];} +if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} + elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];} + +############################################# +##### START SYSTEM_SETTINGS LOOKUP ##### +$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;"; +$rslt=mysql_to_mysqli($stmt, $link); +if ($DB) {$MAIN.="$stmt\n";} +$qm_conf_ct = mysqli_num_rows($rslt); +if ($qm_conf_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $non_latin = $row[0]; + $outbound_autodial_active = $row[1]; + $slave_db_server = $row[2]; + $reports_use_slave_db = $row[3]; + $SSenable_languages = $row[4]; + $SSlanguage_method = $row[5]; + } +##### END SETTINGS LOOKUP ##### +########################################### + +$NOW_DATE = date("Y-m-d"); + +if ($non_latin < 1) + { + $PHP_AUTH_USER = preg_replace('/[^-_0-9a-zA-Z]/', '', $PHP_AUTH_USER); + $PHP_AUTH_PW = preg_replace('/[^-_0-9a-zA-Z]/', '', $PHP_AUTH_PW); + } +else + { + $PHP_AUTH_PW = preg_replace("/'|\"|\\\\|;/","",$PHP_AUTH_PW); + $PHP_AUTH_USER = preg_replace("/'|\"|\\\\|;/","",$PHP_AUTH_USER); + } + +$stmt="SELECT selected_language from vicidial_users where user='$PHP_AUTH_USER';"; +if ($DB) {echo "|$stmt|\n";} +$rslt=mysql_to_mysqli($stmt, $link); +$sl_ct = mysqli_num_rows($rslt); +if ($sl_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $VUselected_language = $row[0]; + } + +$auth=0; +$reports_auth=0; +$admin_auth=0; +$auth_message = user_authorization($PHP_AUTH_USER,$PHP_AUTH_PW,'REPORTS',1); +if ($auth_message == 'GOOD') + {$auth=1;} + +if ($auth > 0) + { + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 7 and view_reports='1';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + $admin_auth=$row[0]; + + $stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and user_level > 6 and view_reports='1';"; + if ($DB) {echo "|$stmt|\n";} + $rslt=mysql_to_mysqli($stmt, $link); + $row=mysqli_fetch_row($rslt); + $reports_auth=$row[0]; + + if ($reports_auth < 1) + { + $VDdisplayMESSAGE = _QXZ("You are not allowed to view reports"); + Header ("Content-type: text/html; charset=utf-8"); + echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; + exit; + } + if ( ($reports_auth > 0) and ($admin_auth < 1) ) + { + $ADD=999999; + $reports_only_user=1; + } + } +else + { + $VDdisplayMESSAGE = _QXZ("Login incorrect, please try again"); + if ($auth_message == 'LOCK') + { + $VDdisplayMESSAGE = _QXZ("Too many login attempts, try again in 15 minutes"); + Header ("Content-type: text/html; charset=utf-8"); + echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n"; + exit; + } + Header("WWW-Authenticate: Basic realm=\"CONTACT-CENTER-ADMIN\""); + Header("HTTP/1.0 401 Unauthorized"); + echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$PHP_AUTH_PW|$auth_message|\n"; + exit; + } + +##### BEGIN log visit to the vicidial_report_log table ##### +$LOGip = getenv("REMOTE_ADDR"); +$LOGbrowser = getenv("HTTP_USER_AGENT"); +$LOGscript_name = getenv("SCRIPT_NAME"); +$LOGserver_name = getenv("SERVER_NAME"); +$LOGserver_port = getenv("SERVER_PORT"); +$LOGrequest_uri = getenv("REQUEST_URI"); +$LOGhttp_referer = getenv("HTTP_REFERER"); +if (preg_match("/443/i",$LOGserver_port)) {$HTTPprotocol = 'https://';} + else {$HTTPprotocol = 'http://';} +if (($LOGserver_port == '80') or ($LOGserver_port == '443') ) {$LOGserver_port='';} +else {$LOGserver_port = ":$LOGserver_port";} +$LOGfull_url = "$HTTPprotocol$LOGserver_name$LOGserver_port$LOGrequest_uri"; + +$LOGhostname = php_uname('n'); +if (strlen($LOGhostname)<1) {$LOGhostname='X';} +if (strlen($LOGserver_name)<1) {$LOGserver_name='X';} + +$stmt="SELECT webserver_id FROM vicidial_webservers where webserver='$LOGserver_name' and hostname='$LOGhostname' LIMIT 1;"; +$rslt=mysql_to_mysqli($stmt, $link); +if ($DB) {echo "$stmt\n";} +$webserver_id_ct = mysqli_num_rows($rslt); +if ($webserver_id_ct > 0) + { + $row=mysqli_fetch_row($rslt); + $webserver_id = $row[0]; + } +else + { + ##### insert webserver entry + $stmt="INSERT INTO vicidial_webservers (webserver,hostname) values('$LOGserver_name','$LOGhostname');"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_to_mysqli($stmt, $link); + $affected_rows = mysqli_affected_rows($link); + $webserver_id = mysqli_insert_id($link); + } + +$stmt="INSERT INTO vicidial_report_log set event_date=NOW(), user='$PHP_AUTH_USER', ip_address='$LOGip', report_name='$report_name', browser='$LOGbrowser', referer='$LOGhttp_referer', notes='$LOGserver_name:$LOGserver_port $LOGscript_name', url='$LOGfull_url', webserver='$webserver_id';"; +if ($DB) {echo "|$stmt|\n";} +$rslt=mysql_to_mysqli($stmt, $link); +$report_log_id = mysqli_insert_id($link); +##### END log visit to the vicidial_report_log table ##### + + +if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_slave_db)) ) + { + mysqli_close($link); + $use_slave_server=1; + $db_source = 'S'; + require("dbconnect_mysqli.php"); + $MAIN.="\n"; + } + + +if (strlen($query_date_D) < 6) {$query_date_D = "00:00:00";} +if (strlen($query_date_T) < 6) {$query_date_T = "23:59:59";} +if (!isset($query_date)) {$query_date = $NOW_DATE;} + +/* +$server_ip_string='|'; +$server_ip_ct = count($server_ip); +$i=0; +while($i < $server_ip_ct) + { + $server_ip_string .= "$server_ip[$i]|"; + $i++; + } + +$server_stmt="select server_ip,server_description from servers where active_asterisk_server='Y' order by server_ip asc;"; +$server_rslt=mysql_to_mysqli($server_stmt, $link); +$servers_to_print=mysqli_num_rows($server_rslt); +$i=0; +while ($i < $servers_to_print) + { + $row=mysqli_fetch_row($server_rslt); + $LISTserverIPs[$i] = $row[0]; + $LISTserver_names[$i] = $row[1]; + if (preg_match('/\-ALL/',$server_ip_string) ) + { + $server_ip[$i] = $LISTserverIPs[$i]; + } + $i++; + } + +$i=0; +$server_ips_string='|'; +$server_ip_ct = count($server_ip); +while($i < $server_ip_ct) + { + if ( (strlen($server_ip[$i]) > 0) and (preg_match("/\|$server_ip[$i]\|/",$server_ip_string)) ) + { + $server_ips_string .= "$server_ip[$i]|"; + $server_ip_SQL .= "'$server_ip[$i]',"; + $server_ipQS .= "&server_ip[]=$server_ip[$i]"; + } + $i++; + } + +if ( (preg_match('/\-\-ALL\-\-/',$server_ip_string) ) or ($server_ip_ct < 1) ) + { + $server_ip_SQL = ""; + $server_rpt_string="- "._QXZ("ALL servers")." "; + if (preg_match('/\-\-ALL\-\-/',$server_ip_string)) {$server_ipQS="&server_ip[]=--ALL--";} + } +else + { + $server_ip_SQL = preg_replace('/,$/i', '',$server_ip_SQL); + $server_ip_SQL = "and server_ip IN($server_ip_SQL)"; + $server_rpt_string="- server(s) ".preg_replace('/\|/', ", ", substr($server_ip_string, 1, -1)); + } +if (strlen($server_ip_SQL)<3) {$server_ip_SQL="";} +*/ + +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.="\n"; +$HEADER.=""._QXZ("$report_name")."\n"; + +$short_header=1; + +$MAIN.="\n"; + echo "\n"; + echo "\n"; echo "\n"; @@ -34374,6 +34381,7 @@ if ($ADD==999994) echo "
  • "._QXZ("Webserver-URL Report")."\n"; echo "
  • "._QXZ("Agent LAGGED Report")."\n"; echo "
  • "._QXZ("User Group Login Report")."\n"; + echo "
  • "._QXZ("Agent Debug Log Report")."\n"; echo "
  • "._QXZ("Agent-Manager Chat Log")."\n"; echo "
  • "._QXZ("Admin Report Log Viewer")."\n"; echo "

    \n"; diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index 627143ab..57a3efe6 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -52,6 +52,7 @@ # 150610-0938 - Added campaigns-customer_gone_seconds # 150708-2238 - Added max_queue_ingroup_ options # 150710-1124 - Added explanation of new ALT URL feature and alt_multi_urls +# 150724-0047 - Added agent_debug_logging # require("dbconnect_mysqli.php"); @@ -4760,6 +4761,11 @@ FR_SPAC 00 00 00 00 00 - - +
    + +
    + - +

  • "; +$MAIN.="
    \n"; +$MAIN.="
    \n"; +$MAIN.="\n"; +$MAIN.=_QXZ("Date").":\n"; +$MAIN.=""; +$MAIN.="\n"; + +$MAIN.="

    "; + +$MAIN.="
    "._QXZ("to")."
    "; + +/* +$MAIN.="
    "._QXZ("Server IP").":
    \n"; +$MAIN.="
    \n"; +*/ + +$MAIN.="

    \n"; +$MAIN.="
    \n"; + + +if ($SUBMIT) { + /* + $stmt="select hangup_cause, dialstatus, count(*) as ct From vicidial_carrier_log where call_date>='$query_date $query_date_D' and call_date<='$query_date $query_date_T' $server_ip_SQL group by hangup_cause, dialstatus order by hangup_cause, dialstatus"; + $rslt=mysql_to_mysqli($stmt, $link); + $MAIN.="
    \n";
    +	if ($DB) {$MAIN.=$stmt."\n";}
    +	if (mysqli_num_rows($rslt)>0) {
    +		$MAIN.="--- "._QXZ("DIAL STATUS BREAKDOWN FOR")." $query_date, $query_date_D "._QXZ("TO")." $query_date_T $server_rpt_string\n";
    +		$MAIN.="+--------------+-------------+---------+\n";
    +		$MAIN.="| "._QXZ("HANGUP CAUSE",12)." | "._QXZ("DIAL STATUS",11)." | "._QXZ("COUNT",7)." |\n";
    +		$MAIN.="+--------------+-------------+---------+\n";
    +		$total_count=0;
    +		while ($row=mysqli_fetch_array($rslt)) {
    +			$MAIN.="| ".sprintf("%-13s", $row["hangup_cause"]);
    +			$MAIN.="| ".sprintf("%-12s", $row["dialstatus"]);
    +			$MAIN.="| ".sprintf("%-8s", $row["ct"]);
    +			$MAIN.="|\n";
    +			$total_count+=$row["ct"];
    +		}
    +		$MAIN.="+--------------+-------------+---------+\n";
    +		$MAIN.="| "._QXZ("TOTAL",26,"r")." | ".sprintf("%-8s", $total_count)."|\n";
    +		$MAIN.="+--------------+-------------+---------+\n\n";
    +
    +		$stmt="select sip_hangup_cause,sip_hangup_reason,count(*) as ct From vicidial_carrier_log where call_date>='$query_date $query_date_D' and call_date<='$query_date $query_date_T' $server_ip_SQL group by sip_hangup_cause,sip_hangup_reason order by sip_hangup_cause,sip_hangup_reason";
    +		$rslt=mysql_to_mysqli($stmt, $link);
    +		$MAIN.="
    \n";
    +		if ($DB) {$MAIN.=$stmt."\n";}
    +		if (mysqli_num_rows($rslt)>0) {
    +			$MAIN.="--- "._QXZ("SIP ERROR REASON BREAKDOWN FOR")." $query_date, $query_date_D "._QXZ("TO")." $query_date_T $server_rpt_string\n";
    +			$MAIN.="+----------+--------------------------------+---------+\n";
    +			$MAIN.="| "._QXZ("SIP CODE",8)." | "._QXZ("SIP HANGUP REASON",30)." | "._QXZ("COUNT",7)." |\n";
    +			$MAIN.="+----------+--------------------------------+---------+\n";
    +			$total_count=0;
    +			while ($row=mysqli_fetch_array($rslt)) {
    +				$MAIN.="| ".sprintf("%8s", $row["sip_hangup_cause"])." ";
    +				$MAIN.="| ".sprintf("%-31s", $row["sip_hangup_reason"]);
    +				$MAIN.="| ".sprintf("%-8s", $row["ct"]);
    +				$MAIN.="|\n";
    +				$total_count+=$row["ct"];
    +			}
    +			$MAIN.="+----------+--------------------------------+---------+\n";
    +			$MAIN.="| "._QXZ("TOTAL",41,"r")." | ".sprintf("%-8s", $total_count)."|\n";
    +			$MAIN.="+-------------------------------------------+---------+\n\n\n";
    +		}
    +	*/
    +
    +
    +	$MAIN.="
    \n";
    +
    +		$rpt_stmt="select user,start_time,db_time,run_time,php_script,action,lead_id,stage from vicidial_ajax_log where db_time >= '$query_date $query_date_D' and db_time <= '$query_date $query_date_T' order by db_time desc;";
    +		$rpt_rslt=mysql_to_mysqli($rpt_stmt, $link);
    +		if ($DB) {$MAIN.=$rpt_stmt."\n";}
    +		if (mysqli_num_rows($rpt_rslt)>0) {
    +
    +		if (!$lower_limit) {$lower_limit=1;}
    +		if ($lower_limit+999>=mysqli_num_rows($rpt_rslt)) {$upper_limit=($lower_limit+mysqli_num_rows($rpt_rslt)%1000)-1;} else {$upper_limit=$lower_limit+999;}
    +		
    +		$MAIN.="--- "._QXZ("AGENT SCREEN DEBUG LOG RECORDS FOR")." $query_date, $query_date_D "._QXZ("TO")." $query_date_T $server_rpt_string, "._QXZ("RECORDS")." #$lower_limit-$upper_limit               ["._QXZ("DOWNLOAD")."]\n";
    +		$agntdb_rpt.="+----------------------+---------------------+---------------------+------------+----------------------+------------------------------------------+------------+------------------------------------------+\n";
    +		$agntdb_rpt.="| "._QXZ("USER",20)." | "._QXZ("SCREEN DATE",19)." | "._QXZ("DB DATE",19)." | "._QXZ("RUN TIME",10)." | "._QXZ("SCRIPT",20)." | "._QXZ("ACTION",40)." | "._QXZ("LEAD_ID",10)." | "._QXZ("STAGE",40)." |\n";
    +		$agntdb_rpt.="+----------------------+---------------------+---------------------+------------+----------------------+------------------------------------------+------------+------------------------------------------+\n";
    +		$CSV_text="\""._QXZ("USER")."\",\""._QXZ("SCREEN DATE")."\",\""._QXZ("DB DATE")."\",\""._QXZ("RUN TIME")."\",\""._QXZ("SCRIPT")."\",\""._QXZ("ACTION")."\",\""._QXZ("LEAD_ID")."\",\""._QXZ("STAGE")."\"\n";
    +
    +		for ($i=1; $i<=mysqli_num_rows($rpt_rslt); $i++) {
    +			$row=mysqli_fetch_array($rpt_rslt);
    +
    +			$CSV_text.="\"$row[user]\",\"$row[call_date]\",\"$row[server_ip]\",\"$row[lead_id]\",\"$row[hangup_cause]\",\"$row[dialstatus]\",\"$row[channel]\",\"$row[dial_time]\",\"$row[answered_time]\",\"$row[sip_hangup_cause]\",\"$row[sip_hangup_reason]\",\"$phone_number\"\n";
    +			if ($i>=$lower_limit && $i<=$upper_limit) {
    +				$agntdb_rpt.="| ".sprintf("%-20s", $row["user"]); 
    +				$agntdb_rpt.=" | ".sprintf("%-19s", $row["start_time"]); 
    +				$agntdb_rpt.=" | ".sprintf("%-19s", $row["db_time"]); 
    +				if (strlen($row["run_time"])>10) {$row["run_time"]=substr($row["run_time"],0,10)."";}
    +				$agntdb_rpt.=" | ".sprintf("%-10s", $row["run_time"]); 
    +				$agntdb_rpt.=" | ".sprintf("%-20s", $row["php_script"]); 
    +				if (strlen($row["action"])>37) {$row["action"]=substr($row["action"],0,37)."...";}
    +				$agntdb_rpt.=" | ".sprintf("%-40s", $row["action"]); 
    +				$agntdb_rpt.=" | ".sprintf("%-10s", $row["lead_id"]); 
    +				if (strlen($row["stage"])>37) {$row["stage"]=substr($row["stage"],0,37)."...";}
    +				$agntdb_rpt.=" | ".sprintf("%-40s", $row["stage"])." |\n"; 
    +			}
    +		}
    +		$agntdb_rpt.="+----------------------+---------------------+---------------------+------------+----------------------+------------------------------------------+------------+------------------------------------------+\n";
    +
    +		$agntdb_rpt_hf="";
    +		$ll=$lower_limit-1000;
    +		if ($ll>=1) {
    +			$agntdb_rpt_hf.="[<<< "._QXZ("PREV")." 1000 "._QXZ("records")."]";
    +		} else {
    +			$agntdb_rpt_hf.=sprintf("%-23s", " ");
    +		}
    +		$agntdb_rpt_hf.=sprintf("%-145s", " ");
    +		if (($lower_limit+1000)=mysqli_num_rows($rpt_rslt)) {$max_limit=mysqli_num_rows($rpt_rslt)-$upper_limit;} else {$max_limit=1000;}
    +			$agntdb_rpt_hf.="["._QXZ("NEXT")." $max_limit "._QXZ("records")." >>>]";
    +		} else {
    +			$agntdb_rpt_hf.=sprintf("%23s", " ");
    +		}
    +		$agntdb_rpt_hf.="\n";
    +		$MAIN.=$agntdb_rpt_hf.$agntdb_rpt.$agntdb_rpt_hf;
    +	} else {
    +		$MAIN.="*** "._QXZ("NO RECORDS FOUND")." ***\n";
    +	}
    +	$MAIN.="
    \n"; + + $MAIN.="\n"; + + +} + if ($file_download>0) { + $FILE_TIME = date("Ymd-His"); + $CSVfilename = "AST_agent_debug_log_report_$US$FILE_TIME.csv"; + $CSV_text=preg_replace('/ +\"/', '"', $CSV_text); + $CSV_text=preg_replace('/\" +/', '"', $CSV_text); + // We'll be outputting a TXT file + header('Content-type: application/octet-stream'); + + // It will be called LIST_101_20090209-121212.txt + header("Content-Disposition: attachment; filename=\"$CSVfilename\""); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + ob_clean(); + flush(); + + echo "$CSV_text"; + + } else { + echo $HEADER; + require("admin_header.php"); + echo $MAIN; + } + +if ($db_source == 'S') + { + mysqli_close($link); + $use_slave_server=0; + $db_source = 'M'; + require("dbconnect_mysqli.php"); + } + +$endMS = microtime(); +$startMSary = explode(" ",$startMS); +$endMSary = explode(" ",$endMS); +$runS = ($endMSary[0] - $startMSary[0]); +$runM = ($endMSary[1] - $startMSary[1]); +$TOTALrun = ($runS + $runM); + +$stmt="UPDATE vicidial_report_log set run_time='$TOTALrun' where report_log_id='$report_log_id';"; +if ($DB) {echo "|$stmt|\n";} +$rslt=mysql_to_mysqli($stmt, $link); + +exit; + +?> diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index faca8287..d6ae6255 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -109,9 +109,9 @@ $PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW']; $PHP_SELF=$_SERVER['PHP_SELF']; $QUERY_STRING = getenv("QUERY_STRING"); -$Vreports = 'NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Campaign Status List Report, Export Calls Report, Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, Single Agent Daily Time, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Carrier Log Report, Campaign Debug, Hangup Cause Report, Lists Pass Report, Called Counts List IDs Report, Agent-Manager Chat Log'; +$Vreports = 'NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Lists Statuses Report, Campaign Status List Report, Export Calls Report, Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, Single Agent Daily Time, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Carrier Log Report, Campaign Debug, Hangup Cause Report, Lists Pass Report, Called Counts List IDs Report, Agent Debug Log Report, Agent-Manager Chat Log'; -$UGreports = 'ALL REPORTS, NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound Email Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Campaign Status List Report, Export Calls Report , Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, Single Agent Daily Time, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Custom Reports Links, CallCard Search, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Lists Pass Report, Called Counts List IDs Report, Front Page System Summary, Agent-Manager Chat Log'; +$UGreports = 'ALL REPORTS, NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound Email Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Lists Statuses Report, Campaign Status List Report, Export Calls Report , Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, Single Agent Daily Time, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Custom Reports Links, CallCard Search, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Lists Pass Report, Called Counts List IDs Report, Front Page System Summary, Agent Debug Log Report, Agent-Manager Chat Log'; $Vtables = 'NONE,log_noanswer,did_agent_log,contact_information'; @@ -1944,6 +1944,8 @@ if (isset($_GET["max_queue_ingroup_id"])) {$max_queue_ingroup_id=$_GET["max_qu elseif (isset($_POST["max_queue_ingroup_id"])) {$max_queue_ingroup_id=$_POST["max_queue_ingroup_id"];} if (isset($_GET["max_queue_ingroup_extension"])) {$max_queue_ingroup_extension=$_GET["max_queue_ingroup_extension"];} elseif (isset($_POST["max_queue_ingroup_extension"])) {$max_queue_ingroup_extension=$_POST["max_queue_ingroup_extension"];} +if (isset($_GET["agent_debug_logging"])) {$agent_debug_logging=$_GET["agent_debug_logging"];} + elseif (isset($_POST["agent_debug_logging"])) {$agent_debug_logging=$_POST["agent_debug_logging"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2729,6 +2731,7 @@ if ($non_latin < 1) $language_method = preg_replace('/[^-_0-9a-zA-Z]/','',$language_method); $manual_dial_override_field = preg_replace('/[^-_0-9a-zA-Z]/','',$manual_dial_override_field); $max_queue_ingroup_id = preg_replace('/[^-_0-9a-zA-Z]/','',$max_queue_ingroup_id); + $agent_debug_logging = preg_replace('/[^-_0-9a-zA-Z]/','',$agent_debug_logging); ### ALPHA-NUMERIC and underscore and dash and slash and dot $menu_timeout_prompt = preg_replace('/[^-\/\|\._0-9a-zA-Z]/','',$menu_timeout_prompt); @@ -3528,12 +3531,13 @@ else # 150708-2246 - Added max_queue_ingroup_ DID settings options # 150710-1120 - Added options for alternate Dispo Call URLs # 150717-1333 - Optimization for dialable lead count SQL +# 150724-0822 - Added agent_debug_logging SS option and report # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.12-497a'; -$build = '150717-1333'; +$admin_version = '2.12-498a'; +$build = '150724-0822'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -15021,7 +15025,7 @@ if ($ADD==411111111111111) $custom_dialplanSQL=''; if ($LOGmodify_custom_dialplans > 0) {$custom_dialplanSQL = ",custom_dialplan_entry='$custom_dialplan_entry'";} - $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db',webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='$chat_url',chat_timeout='$chat_timeout'$custom_dialplanSQL;"; + $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='" . mysqli_real_escape_string($link, $webphone_url) . "',enable_agc_dispo_log='$enable_agc_dispo_log',queuemetrics_loginout='$queuemetrics_loginout',callcard_enabled='$callcard_enabled',queuemetrics_callstatus='$queuemetrics_callstatus',default_codecs='$default_codecs',admin_web_directory='$admin_web_directory',label_title='$label_title',label_first_name='$label_first_name',label_middle_initial='$label_middle_initial',label_last_name='$label_last_name',label_address1='$label_address1',label_address2='$label_address2',label_address3='$label_address3',label_city='$label_city',label_state='$label_state',label_province='$label_province',label_postal_code='$label_postal_code',label_vendor_lead_code='$label_vendor_lead_code',label_gender='$label_gender',label_phone_number='$label_phone_number',label_phone_code='$label_phone_code',label_alt_phone='$label_alt_phone',label_security_phrase='$label_security_phrase',label_email='$label_email',label_comments='$label_comments',custom_fields_enabled='$custom_fields_enabled',slave_db_server='$slave_db_server',reports_use_slave_db='$reports_use_slave_db',webphone_systemkey='$webphone_systemkey',first_login_trigger='$first_login_trigger',default_phone_registration_password='$default_phone_registration_password',default_phone_login_password='$default_phone_login_password',default_server_password='$default_server_password',admin_modify_refresh='$admin_modify_refresh',nocache_admin='$nocache_admin',generate_cross_server_exten='$generate_cross_server_exten',queuemetrics_addmember_enabled='$queuemetrics_addmember_enabled',queuemetrics_dispo_pause='$queuemetrics_dispo_pause',label_hide_field_logs='$label_hide_field_logs',queuemetrics_pe_phone_append='$queuemetrics_pe_phone_append',test_campaign_calls='$test_campaign_calls',agents_calls_reset='$agents_calls_reset',default_voicemail_timezone='$default_voicemail_timezone',default_local_gmt='$default_local_gmt',noanswer_log='$noanswer_log',alt_log_server_ip='$alt_log_server_ip',alt_log_dbname='$alt_log_dbname',alt_log_login='$alt_log_login',alt_log_pass='$alt_log_pass',tables_use_alt_log_db='$tables_use_alt_log_db',did_agent_log='$did_agent_log',campaign_cid_areacodes_enabled='$campaign_cid_areacodes_enabled',pllb_grouping_limit='$pllb_grouping_limit',did_ra_extensions_enabled='$did_ra_extensions_enabled',expanded_list_stats='$expanded_list_stats',contacts_enabled='$contacts_enabled',call_menu_qualify_enabled='$call_menu_qualify_enabled',admin_list_counts='$admin_list_counts',allow_voicemail_greeting='$allow_voicemail_greeting',queuemetrics_socket='$queuemetrics_socket',queuemetrics_socket_url='$queuemetrics_socket_url',enhanced_disconnect_logging='$enhanced_disconnect_logging',allow_emails='$allow_emails',level_8_disable_add='$level_8_disable_add',queuemetrics_record_hold='$queuemetrics_record_hold',country_code_list_stats='$country_code_list_stats',queuemetrics_pause_type='$queuemetrics_pause_type',frozen_server_call_clear='$frozen_server_call_clear',callback_time_24hour='$callback_time_24hour',enable_languages='$enable_languages',language_method='$language_method',meetme_enter_login_filename='$meetme_enter_login_filename',meetme_enter_leave3way_filename='$meetme_enter_leave3way_filename',enable_did_entry_list_id='$enable_did_entry_list_id',enable_third_webform='$enable_third_webform',allow_chats='$allow_chats',chat_url='$chat_url',chat_timeout='$chat_timeout',agent_debug_logging='$agent_debug_logging'$custom_dialplanSQL;"; $rslt=mysql_to_mysqli($stmt, $link); if ( ($meetme_enter_login_filename != $SSmeetme_enter_login_filename) or ($meetme_enter_leave3way_filename != $SSmeetme_enter_leave3way_filename) ) @@ -30223,7 +30227,7 @@ if ($ADD==311111111111111) $ALLagent_count = $rowx[2]; } - $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform from system_settings;"; + $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url,enable_agc_dispo_log,custom_dialplan_entry,queuemetrics_loginout,callcard_enabled,queuemetrics_callstatus,default_codecs,admin_web_directory,label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,custom_fields_enabled,slave_db_server,reports_use_slave_db,webphone_systemkey,first_login_trigger,default_phone_registration_password,default_phone_login_password,default_server_password,admin_modify_refresh,nocache_admin,generate_cross_server_exten,queuemetrics_addmember_enabled,queuemetrics_dispo_pause,label_hide_field_logs,queuemetrics_pe_phone_append,test_campaign_calls,agents_calls_reset,default_voicemail_timezone,default_local_gmt,noanswer_log,alt_log_server_ip,alt_log_dbname,alt_log_login,alt_log_pass,tables_use_alt_log_db,did_agent_log,campaign_cid_areacodes_enabled,pllb_grouping_limit,did_ra_extensions_enabled,expanded_list_stats,contacts_enabled,call_menu_qualify_enabled,admin_list_counts,allow_voicemail_greeting,svn_revision,queuemetrics_socket,queuemetrics_socket_url,enhanced_disconnect_logging,allow_emails,level_8_disable_add,pass_hash_enabled,pass_key,pass_cost,disable_auto_dial,queuemetrics_record_hold,country_code_list_stats,reload_timestamp,queuemetrics_pause_type,frozen_server_call_clear,callback_time_24hour,allow_chats,chat_url,chat_timeout,enable_languages,language_method,meetme_enter_login_filename,meetme_enter_leave3way_filename,enable_did_entry_list_id,enable_third_webform,agent_debug_logging from system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $version = $row[0]; @@ -30359,6 +30363,7 @@ if ($ADD==311111111111111) $meetme_enter_leave3way_filename = $row[130]; $enable_did_entry_list_id = $row[131]; $enable_third_webform = $row[132]; + $agent_debug_logging = $row[133]; if ($pass_hash_enabled > 0) {$pass_hash_enabled = 'ENABLED';} else {$pass_hash_enabled = 'DISABLED';} @@ -30573,6 +30578,8 @@ if ($ADD==311111111111111) echo "
    "._QXZ("Enable DID Entry List ID").": $NWB#settings-enable_did_entry_list_id$NWE
    "._QXZ("Agent Screen Debug Logging").": $NWB#settings-agent_debug_logging$NWE
    "._QXZ("Enhanced Disconnect Logging").": $NWB#settings-enhanced_disconnect_logging$NWE
    "._QXZ("Enable Campaign Areacode CID").": $NWB#settings-campaign_cid_areacodes_enabled$NWE