Added counter variable to HTTP Agent Push events

Added caching of hourly log totals for AST_VDadapt.pl script

git-svn-id: svn://192.168.202.10@2797 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2017-07-26 13:30:36 +00:00
parent d2c07fc41e
commit 50dd55dcd3
8 changed files with 1208 additions and 192 deletions
+50 -1
View File
@@ -120,9 +120,10 @@
# 170513-1728 - Added alternative uptime counter in seconds # 170513-1728 - Added alternative uptime counter in seconds
# 170609-1601 - If phone entry fullname and cidnumber are empty, don't populate a callerid conf line # 170609-1601 - If phone entry fullname and cidnumber are empty, don't populate a callerid conf line
# 170711-0824 - Fixed help documentation for delay seconds, issue #1025 # 170711-0824 - Fixed help documentation for delay seconds, issue #1025
# 170725-0017 - Added vicidial_campaign_hour_counts and vicidial_carrier_hour_counts rolling
# #
$build = '170711-0824'; $build = '170725-0017';
$DB=0; # Debug flag $DB=0; # Debug flag
$teodDB=0; # flag to log Timeclock End of Day processes to log file $teodDB=0; # flag to log Timeclock End of Day processes to log file
@@ -147,6 +148,7 @@ if ($hour < 10) {$hour = "0$hour";}
if ($min < 10) {$min = "0$min";} if ($min < 10) {$min = "0$min";}
if ($sec < 10) {$sec = "0$sec";} if ($sec < 10) {$sec = "0$sec";}
$now_date = "$year-$mon-$mday $hour:$min:$sec"; $now_date = "$year-$mon-$mday $hour:$min:$sec";
$today_start = "$year-$mon-$mday 00:00:00";
$reset_test = "$hour$min"; $reset_test = "$hour$min";
### calculate the date and time for slightly less than 24 hours ago ### calculate the date and time for slightly less than 24 hours ago
@@ -174,6 +176,7 @@ if ($RMhour < 10) {$RMhour = "0$RMhour";}
if ($RMmin < 10) {$RMmin = "0$RMmin";} if ($RMmin < 10) {$RMmin = "0$RMmin";}
if ($RMsec < 10) {$RMsec = "0$RMsec";} if ($RMsec < 10) {$RMsec = "0$RMsec";}
$RMSQLdate = "$RMyear-$RMmon-$RMmday $RMhour:$RMmin:$RMsec"; $RMSQLdate = "$RMyear-$RMmon-$RMmday $RMhour:$RMmin:$RMsec";
$yesterday_start = "$RMyear-$RMmon-$RMmday 00:00:00";
$RMdate = "$RMyear-$RMmon-$RMmday"; $RMdate = "$RMyear-$RMmon-$RMmday";
### calculate the date and time for 7 days ago ### calculate the date and time for 7 days ago
@@ -1243,6 +1246,52 @@ if ($timeclock_end_of_day_NOW > 0)
if($DB){print STDERR "\n|$affected_rows Holidays set to expired|\n";} if($DB){print STDERR "\n|$affected_rows Holidays set to expired|\n";}
if ($teodDB) {$event_string = "Holidays set to expired($RMdate): $affected_rows"; &teod_logger;} if ($teodDB) {$event_string = "Holidays set to expired($RMdate): $affected_rows"; &teod_logger;}
# roll campaign hour stats
if (!$Q) {print "\nProcessing vicidial_campaign_hour_counts table...\n";}
$stmtA = "INSERT IGNORE INTO vicidial_campaign_hour_counts_archive SELECT * from vicidial_campaign_hour_counts where date_hour < '$today_start';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows = $sthA->rows;
if (!$Q) {print "$sthArows rows inserted into vicidial_campaign_hour_counts_archive table \n";}
$rv = $sthA->err();
if (!$rv)
{
$stmtA = "DELETE FROM vicidial_campaign_hour_counts WHERE date_hour < '$today_start';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows = $sthA->rows;
if (!$Q) {print "$sthArows rows deleted from vicidial_campaign_hour_counts table \n";}
$stmtA = "optimize table vicidial_campaign_hour_counts;";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
}
# roll vicidial_carrier_hour_counts
if (!$Q) {print "\nProcessing vicidial_carrier_hour_counts table...\n";}
$stmtA = "INSERT IGNORE INTO vicidial_carrier_hour_counts_archive SELECT * from vicidial_carrier_hour_counts where date_hour < '$today_start';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows = $sthA->rows;
if (!$Q) {print "$sthArows rows inserted into vicidial_carrier_hour_counts_archive table \n";}
$rv = $sthA->err();
if (!$rv)
{
$stmtA = "DELETE FROM vicidial_carrier_hour_counts WHERE date_hour < '$yesterday_start';";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows = $sthA->rows;
if (!$Q) {print "$sthArows rows deleted from vicidial_carrier_hour_counts table \n";}
$stmtA = "optimize table vicidial_carrier_hour_counts;";
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
}
##### BEGIN max stats end of day process ##### ##### BEGIN max stats end of day process #####
# set OPEN max stats records to CLOSING for processing # set OPEN max stats records to CLOSING for processing
+1023 -124
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,4 +1,4 @@
Agent Events Push Started: 2017-05-31 Updated: 2017-06-29 Agent Events Push Started: 2017-05-31 Updated: 2017-07-25
This feature allows for selected events in the VICIdial agent screen to push out event triggers through HTTP requests sent to a URL as defined in the System Settings. This feature allows for selected events in the VICIdial agent screen to push out event triggers through HTTP requests sent to a URL as defined in the System Settings.
@@ -10,13 +10,13 @@ There are two System Settings configurations that need to be set for Agent Event
Agent Push Events - This setting will enable the sending of events from agent screens to the URL defined below. Default is 0 for disabled. Agent Push Events - This setting will enable the sending of events from agent screens to the URL defined below. Default is 0 for disabled.
Agent Push URL - If Agent Push Events are enabled above, this is the URL that the events will be sent to. The variables that you can use within the URL are --A--user--B--, --A--event--B--, --A--message--B--, --A--lead_id--B--. Since this function uses AJAX, it must reference a local script on the web server. If you want to reference an external web address then you should use the get2post.php script that can be found in the extras directory. Agent Push URL - If Agent Push Events are enabled above, this is the URL that the events will be sent to. The variables that you can use within the URL are --A--user--B--, --A--event--B--, --A--message--B--, --A--lead_id--B--, --A--counter--B--. Since this function uses AJAX, it must reference a local script on the web server. If you want to reference an external web address then you should use the get2post.php script that can be found in the extras directory.
The "agent_events" function operates through AJAX in the agent screen, and as such it can only access web scripts that are local on the web server. So, if you want to send these HTTP Push events to an external server, you will have to use a script like the get2post.php script that is included in the "extras" directory in the source code and copy it to the "agc" web directory on your webserver. Below is an example of how to populate the System Settings "Agent Push URL" field to use the get2post.php script: The "agent_events" function operates through AJAX in the agent screen, and as such it can only access web scripts that are local on the web server. So, if you want to send these HTTP Push events to an external server, you will have to use a script like the get2post.php script that is included in the "extras" directory in the source code and copy it to the "agc" web directory on your webserver. Below is an example of how to populate the System Settings "Agent Push URL" field to use the get2post.php script:
get2post.php?uniqueid=--A--epoch--B--.--A--agent_log_id--B--&type=event&HTTPURLTOPOST=192.168.1.3/agc/vdc_call_url_test.php?user=--A--user--B--&lead_id=--A--lead_id--B--&event=--A--event--B--&message=--A--message--B-- get2post.php?uniqueid=--A--epoch--B--.--A--agent_log_id--B--&type=event&HTTPURLTOPOST=192.168.1.3/agc/vdc_call_url_test.php?user=--A--user--B--&lead_id=--A--lead_id--B--&event=--A--event--B--&message=--A--message--B--&counter=--A--counter--B--
The above URL is passing the following fields to the external web script: user, lead_id, event, message The above URL is passing the following fields to the external web script: user, lead_id, event, message
+29 -1
View File
@@ -3746,6 +3746,30 @@ unique index (caller_code),
index (monitor_start_time) index (monitor_start_time)
) ENGINE=MyISAM; ) ENGINE=MyISAM;
CREATE TABLE vicidial_campaign_hour_counts (
campaign_id VARCHAR(8),
date_hour DATETIME,
next_hour DATETIME,
last_update DATETIME,
type VARCHAR(8) default 'CALLS',
calls MEDIUMINT(6) UNSIGNED default '0',
hr TINYINT(2) default '0',
index (campaign_id),
index (date_hour),
unique index vchc_camp_hour (campaign_id, date_hour, type)
) ENGINE=MyISAM;
CREATE TABLE vicidial_carrier_hour_counts (
date_hour DATETIME,
next_hour DATETIME,
last_update DATETIME,
type VARCHAR(20) default 'ANSWERED',
calls MEDIUMINT(6) UNSIGNED default '0',
hr TINYINT(2) default '0',
index (date_hour),
unique index vclhc_hour (date_hour, type)
) ENGINE=MyISAM;
ALTER TABLE vicidial_email_list MODIFY message text character set utf8; ALTER TABLE vicidial_email_list MODIFY message text character set utf8;
@@ -3936,6 +3960,10 @@ CREATE UNIQUE INDEX vicidial_drop_log_archive_key on vicidial_drop_log_archive(d
CREATE TABLE vicidial_rt_monitor_log_archive LIKE vicidial_rt_monitor_log; CREATE TABLE vicidial_rt_monitor_log_archive LIKE vicidial_rt_monitor_log;
CREATE TABLE vicidial_campaign_hour_counts_archive LIKE vicidial_campaign_hour_counts;
CREATE TABLE vicidial_carrier_hour_counts_archive LIKE vicidial_carrier_hour_counts;
GRANT RELOAD ON *.* TO cron@'%'; GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost; GRANT RELOAD ON *.* TO cron@localhost;
@@ -4010,4 +4038,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 vdc_agent_api_active='1';
UPDATE system_settings SET db_schema_version='1509',db_schema_update_date=NOW(),reload_timestamp=NOW(); UPDATE system_settings SET db_schema_version='1510',db_schema_update_date=NOW(),reload_timestamp=NOW();
+30
View File
@@ -291,3 +291,33 @@ ALTER TABLE user_call_log ADD xfer_hungup VARCHAR(20) default '';
ALTER TABLE user_call_log ADD xfer_hungup_datetime DATETIME; ALTER TABLE user_call_log ADD xfer_hungup_datetime DATETIME;
UPDATE system_settings SET db_schema_version='1509',db_schema_update_date=NOW() where db_schema_version < 1509; UPDATE system_settings SET db_schema_version='1509',db_schema_update_date=NOW() where db_schema_version < 1509;
CREATE TABLE vicidial_campaign_hour_counts (
campaign_id VARCHAR(8),
date_hour DATETIME,
next_hour DATETIME,
last_update DATETIME,
type VARCHAR(8) default 'CALLS',
calls MEDIUMINT(6) UNSIGNED default '0',
hr TINYINT(2) default '0',
index (campaign_id),
index (date_hour),
unique index vchc_camp_hour (campaign_id, date_hour, type)
) ENGINE=MyISAM;
CREATE TABLE vicidial_campaign_hour_counts_archive LIKE vicidial_campaign_hour_counts;
CREATE TABLE vicidial_carrier_hour_counts (
date_hour DATETIME,
next_hour DATETIME,
last_update DATETIME,
type VARCHAR(20) default 'ANSWERED',
calls MEDIUMINT(6) UNSIGNED default '0',
hr TINYINT(2) default '0',
index (date_hour),
unique index vclhc_hour (date_hour, type)
) ENGINE=MyISAM;
CREATE TABLE vicidial_carrier_hour_counts_archive LIKE vicidial_carrier_hour_counts;
UPDATE system_settings SET db_schema_version='1510',db_schema_update_date=NOW() where db_schema_version < 1510;
+7 -2
View File
@@ -12,10 +12,11 @@
# 130328-0023 - Converted ereg to preg functions # 130328-0023 - Converted ereg to preg functions
# 170324-1251 - Added more debug output # 170324-1251 - Added more debug output
# 170529-2239 - Added event/message # 170529-2239 - Added event/message
# 170725-2102 - Added counter variable
# #
$version = '2.14-5'; $version = '2.14-6';
$build = '170529-2239'; $build = '170725-2102';
require("dbconnect.php"); require("dbconnect.php");
@@ -160,6 +161,8 @@ if (isset($_GET["event"])) {$event=$_GET["event"];}
elseif (isset($_POST["event"])) {$event=$_POST["event"];} elseif (isset($_POST["event"])) {$event=$_POST["event"];}
if (isset($_GET["message"])) {$message=$_GET["message"];} if (isset($_GET["message"])) {$message=$_GET["message"];}
elseif (isset($_POST["message"])) {$message=$_POST["message"];} elseif (isset($_POST["message"])) {$message=$_POST["message"];}
if (isset($_GET["counter"])) {$counter=$_GET["counter"];}
elseif (isset($_POST["counter"])) {$counter=$_POST["counter"];}
header ("Content-type: text/html; charset=utf-8"); header ("Content-type: text/html; charset=utf-8");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
@@ -199,6 +202,7 @@ if ($non_latin < 1)
$length_in_sec = preg_replace("/[^0-9]/","",$length_in_sec); $length_in_sec = preg_replace("/[^0-9]/","",$length_in_sec);
$phone_code = preg_replace("/[^0-9]/","",$phone_code); $phone_code = preg_replace("/[^0-9]/","",$phone_code);
$phone_number = preg_replace("/[^0-9]/","",$phone_number); $phone_number = preg_replace("/[^0-9]/","",$phone_number);
$counter = preg_replace("/[^0-9]/","",$counter);
} }
else else
{ {
@@ -300,6 +304,7 @@ $output .= "$agent_log_id|";
$output .= "$dispo_name|"; $output .= "$dispo_name|";
$output .= "$event|"; $output .= "$event|";
$output .= "$message|"; $output .= "$message|";
$output .= "$counter|";
echo "$output\n$query_string\n"; echo "$output\n$query_string\n";
+65 -60
View File
@@ -559,10 +559,11 @@
# 170629-1831 - Added some new agent_events entries # 170629-1831 - Added some new agent_events entries
# 170709-1116 - Added Xfer Hung Up notification # 170709-1116 - Added Xfer Hung Up notification
# 170710-1802 - Added logging of clicks on webform buttons # 170710-1802 - Added logging of clicks on webform buttons
# 170725-2147 - Added counter(aec) to agent_events calls
# #
$version = '2.14-529c'; $version = '2.14-530c';
$build = '170710-1802'; $build = '170725-2147';
$mel=1; # Mysql Error Log enabled = 1 $mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87; $mysql_log_count=87;
$one_mysql_log=0; $one_mysql_log=0;
@@ -4542,6 +4543,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var script_name='<?php echo $script_name ?>'; var script_name='<?php echo $script_name ?>';
var transfer_panel_open=0; var transfer_panel_open=0;
var last_conf_channel_count=1; var last_conf_channel_count=1;
var aec=0;
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>"; var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>"; var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />"; var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
@@ -4934,7 +4936,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
// dialedcall_send_hangup(); // dialedcall_send_hangup();
// } // }
agent_events('3way_agent_leave', ''); agent_events('3way_agent_leave', '', aec); aec++;
if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;} if( document.images ) { document.images['livecall'].src = image_livecall_OFF.src;}
} }
@@ -5030,7 +5032,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
if (SMDclick=='YES') if (SMDclick=='YES')
{button_click_log = button_click_log + "" + SQLdate + "-----SendManualDial---" + taskFromConf + " " + agent_dialed_type + " " + manual_string + " " + three_way_call_cid + " " + threeway_cid + " " + dial_conf_exten + " " + sending_preset_name + " ";} {button_click_log = button_click_log + "" + SQLdate + "-----SendManualDial---" + taskFromConf + " " + agent_dialed_type + " " + manual_string + " " + three_way_call_cid + " " + threeway_cid + " " + dial_conf_exten + " " + sending_preset_name + " ";}
agent_events('3way_start', agent_dialed_type + ' ' + manual_string); agent_events('3way_start', agent_dialed_type + ' ' + manual_string, aec); aec++;
if (taskFromConf == 'YES') if (taskFromConf == 'YES')
{ {
@@ -5450,20 +5452,20 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|"; button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
showDiv('AgenTDisablEBoX'); showDiv('AgenTDisablEBoX');
refresh_interval = 7300000; refresh_interval = 7300000;
agent_events('session_disabled', 'LIVE_AGENT'); agent_events('session_disabled', 'LIVE_AGENT', aec); aec++;
} }
if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) ) if ( (AGLogiN == 'DEAD_EXTERNAL') && ( (vicidial_agent_disable == 'EXTERNAL') || (vicidial_agent_disable == 'ALL') ) )
{ {
button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|"; button_click_log = button_click_log + "" + SQLdate + "-----agent_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
showDiv('AgenTDisablEBoX'); showDiv('AgenTDisablEBoX');
refresh_interval = 7300000; refresh_interval = 7300000;
agent_events('session_disabled', 'DEAD_EXTERNAL'); agent_events('session_disabled', 'DEAD_EXTERNAL', aec); aec++;
} }
if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') ) if ( (AGLogiN == 'TIME_SYNC') && (vicidial_agent_disable == 'ALL') )
{ {
button_click_log = button_click_log + "" + SQLdate + "-----system_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|"; button_click_log = button_click_log + "" + SQLdate + "-----system_disabled---" + AGLogiN + " " + vicidial_agent_disable + "|";
showDiv('SysteMDisablEBoX'); showDiv('SysteMDisablEBoX');
agent_events('time_sync', ''); agent_events('time_sync', '', aec); aec++;
} }
if (AGLogiN == 'SHIFT_LOGOUT') if (AGLogiN == 'SHIFT_LOGOUT')
{ {
@@ -5860,7 +5862,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
if (CheckDEADcallON < 1) if (CheckDEADcallON < 1)
{ {
agent_events('call_dead', LasTCID); agent_events('call_dead', LasTCID, aec); aec++;
if( document.images ) if( document.images )
{ document.images['livecall'].src = image_livecall_DEAD.src;} { document.images['livecall'].src = image_livecall_DEAD.src;}
@@ -5884,7 +5886,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
if (CheckDEADcallON < 1) if (CheckDEADcallON < 1)
{ {
agent_events('call_dead', LasTCID); agent_events('call_dead', LasTCID, aec); aec++;
if( document.images ) if( document.images )
{ document.images['livecall'].src = image_livechat_DEAD.src;} { document.images['livecall'].src = image_livechat_DEAD.src;}
@@ -5918,7 +5920,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
if ( (last_conf_channel_count < 1) && (no_empty_session_warnings < 1) ) if ( (last_conf_channel_count < 1) && (no_empty_session_warnings < 1) )
{ {
agent_events('session_channels', live_conf_calls); agent_events('session_channels', live_conf_calls, aec); aec++;
last_conf_channel_count = live_conf_calls; last_conf_channel_count = live_conf_calls;
} }
var temp_blind_monitors=0; var temp_blind_monitors=0;
@@ -6066,7 +6068,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
if ( (last_conf_channel_count > 0) && (no_empty_session_warnings < 1) ) if ( (last_conf_channel_count > 0) && (no_empty_session_warnings < 1) )
{ {
agent_events('session_empty', '0'); agent_events('session_empty', '0', aec); aec++;
last_conf_channel_count = 0; last_conf_channel_count = 0;
} }
LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]=''; LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]='';
@@ -6409,7 +6411,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if (temp_blind_dialstring != 'vmail') if (temp_blind_dialstring != 'vmail')
{temp_blind_dialstring = blindxferdialstring;} {temp_blind_dialstring = blindxferdialstring;}
agent_events('transfer_blind', temp_blind_dialstring); agent_events('transfer_blind', temp_blind_dialstring, aec); aec++;
} }
} }
if (taskvar == 'XfeRINTERNAL') if (taskvar == 'XfeRINTERNAL')
@@ -6440,7 +6442,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectVD&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&auto_dial_level=" + auto_dial_level + "&campaign=" + campaign + "&uniqueid=" + document.vicidial_form.uniqueid.value + "&lead_id=" + document.vicidial_form.lead_id.value + "&secondS=" + VD_live_call_secondS + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
agent_events('transfer_local_closer', XfeR_GrouP); agent_events('transfer_local_closer', XfeR_GrouP, aec); aec++;
} }
if (taskvar == 'XfeR') if (taskvar == 'XfeR')
{ {
@@ -6448,7 +6450,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var redirectdestination = document.vicidial_form.extension_xfer.value; var redirectdestination = document.vicidial_form.extension_xfer.value;
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectName&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectName&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
agent_events('transfer_blind', redirectdestination); agent_events('transfer_blind', redirectdestination, aec); aec++;
} }
if (taskvar == 'VMAIL') if (taskvar == 'VMAIL')
{ {
@@ -6456,7 +6458,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var redirectdestination = document.vicidial_form.extension_xfer.value; var redirectdestination = document.vicidial_form.extension_xfer.value;
xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectNameVmail&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + voicemail_dump_exten + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=RedirectNameVmail&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + voicemail_dump_exten + "&extenName=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1" + "&session_id=" + session_id + "&CalLCID=" + CalLCID + "&customerparked=" + customerparked;
agent_events('transfer_vmail', redirectdestination); agent_events('transfer_vmail', redirectdestination, aec); aec++;
} }
if (taskvar == 'ENTRY') if (taskvar == 'ENTRY')
{ {
@@ -6511,7 +6513,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
customerparked=1; customerparked=1;
customerparkedcounter=0; customerparkedcounter=0;
agent_events('park_started', ''); agent_events('park_started', '', aec); aec++;
} }
if (taskvar == 'FROMParK') if (taskvar == 'FROMParK')
{ {
@@ -6540,7 +6542,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
customerparked=0; customerparked=0;
customerparkedcounter=0; customerparkedcounter=0;
agent_events('park_retrieved', ''); agent_events('park_retrieved', '', aec); aec++;
} }
if (taskvar == 'ParKivr') if (taskvar == 'ParKivr')
{ {
@@ -6563,7 +6565,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
customerparked=1; customerparked=1;
customerparkedcounter=0; customerparkedcounter=0;
agent_events('park_ivr_started', ''); agent_events('park_ivr_started', '', aec); aec++;
} }
if (taskvar == 'FROMParKivr') if (taskvar == 'FROMParKivr')
{ {
@@ -6592,7 +6594,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
customerparked=0; customerparked=0;
customerparkedcounter=0; customerparkedcounter=0;
agent_events('park_ivr_retrieved', ''); agent_events('park_ivr_retrieved', '', aec); aec++;
} }
if (taskvar == 'ParKXfeR') if (taskvar == 'ParKXfeR')
@@ -7273,7 +7275,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
else else
{ {
agent_events('agent_alert', temp_message); agent_events('agent_alert', temp_message, aec); aec++;
} }
document.getElementById("AlertBox").style.top = ABtop; document.getElementById("AlertBox").style.top = ABtop;
document.getElementById("AlertBox").style.left = ABleft; document.getElementById("AlertBox").style.left = ABleft;
@@ -7448,7 +7450,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
showDiv('NeWManuaLDiaLBox'); showDiv('NeWManuaLDiaLBox');
agent_events('manual_dial_open', ''); agent_events('manual_dial_open', '', aec); aec++;
document.vicidial_form.search_phone_number.value=''; document.vicidial_form.search_phone_number.value='';
document.vicidial_form.search_lead_id.value=''; document.vicidial_form.search_lead_id.value='';
@@ -8261,7 +8263,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var XDerrorDescSIP = MDlookResponse_array[4]; var XDerrorDescSIP = MDlookResponse_array[4];
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP; var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + XDchannel + "\n" + XDerrorDesc + "\n" + XDerrorDescSIP;
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE); TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
agent_events('agent_alert', "Call Rejected: " + XDerrorDesc + ' ' + XDerrorDescSIP); agent_events('agent_alert', "Call Rejected: " + XDerrorDesc + ' ' + XDerrorDescSIP, aec); aec++;
} }
if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) ) if ( (XDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') && (MD_ring_secondS < 10) )
{ {
@@ -8305,7 +8307,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
xferchannellive=1; xferchannellive=1;
XDcheck = ''; XDcheck = '';
agent_events('3way_answered', ''); agent_events('3way_answered', '', aec); aec++;
} }
} }
else else
@@ -8320,7 +8322,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var MDerrorDescSIP = MDlookResponse_array[4]; var MDerrorDescSIP = MDlookResponse_array[4];
var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP; var DiaLAlerTMessagE = "<?php echo _QXZ("Call Rejected:"); ?> " + MDchannel + "\n" + MDerrorDesc + "\n" + MDerrorDescSIP;
TimerActionRun("DiaLAlerT",DiaLAlerTMessagE); TimerActionRun("DiaLAlerT",DiaLAlerTMessagE);
agent_events('agent_alert', "Call Rejected: " + MDerrorDesc + ' ' + MDerrorDescSIP); agent_events('agent_alert', "Call Rejected: " + MDerrorDesc + ' ' + MDerrorDescSIP, aec); aec++;
} }
if ( (MDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') ) if ( (MDchannel.match(regMDL)) && (asterisk_version != '1.0.8') && (asterisk_version != '1.0.9') )
{ {
@@ -8449,7 +8451,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
custchannellive=1; custchannellive=1;
agent_events('call_answered', CIDcheck); agent_events('call_answered', CIDcheck, aec); aec++;
} }
} }
} }
@@ -8761,7 +8763,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n"; document.getElementById("WebFormSpanTwo").innerHTML = "<a href=\"" + TEMP_VDIC_web_form_address_three + "\" target=\"" + web_form_target + "\" onMouseOver=\"WebFormThreeRefresH();\" onclick=\"webform_click_log('webform3');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_webform_three.gif"); ?>\" border=\"0\" alt=\"Web Form 3\" /></a>\n";
} }
agent_events('update_fields', event_data); agent_events('update_fields', event_data, aec); aec++;
} }
else else
{ {
@@ -8880,7 +8882,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var man_status = "<?php echo _QXZ("Waiting for Ring..."); ?>"; var man_status = "<?php echo _QXZ("Waiting for Ring..."); ?>";
} }
agent_events('call_dialed', mdnPhonENumbeR + " " + agent_dialed_type); agent_events('call_dialed', mdnPhonENumbeR + " " + agent_dialed_type, aec); aec++;
var xmlhttp=false; var xmlhttp=false;
/*@cc_on @*/ /*@cc_on @*/
@@ -9879,7 +9881,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
else else
{VDRP_stage = 'READY';} {VDRP_stage = 'READY';}
} }
agent_events('state_ready', VDRP_stage); agent_events('state_ready', VDRP_stage, aec); aec++;
AutoDialReady = 1; AutoDialReady = 1;
AutoDialWaiting = 1; AutoDialWaiting = 1;
if (dial_method == "INBOUND_MAN") if (dial_method == "INBOUND_MAN")
@@ -9896,7 +9898,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
else else
{ {
VDRP_stage = 'PAUSED'; VDRP_stage = 'PAUSED';
agent_events('state_paused', VDRP_stage); agent_events('state_paused', VDRP_stage, aec); aec++;
VDRP_stage_seconds=0; VDRP_stage_seconds=0;
AutoDialReady = 0; AutoDialReady = 0;
AutoDialWaiting = 0; AutoDialWaiting = 0;
@@ -10075,7 +10077,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
new_script_content = xmlhttp.responseText; new_script_content = xmlhttp.responseText;
document.getElementById(script_span).innerHTML = new_script_content; document.getElementById(script_span).innerHTML = new_script_content;
agent_events('call_script', script_span); agent_events('call_script', script_span, aec); aec++;
} }
} }
delete xmlhttp; delete xmlhttp;
@@ -10308,7 +10310,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
document.vicidial_form.SecondS.value = 0; document.vicidial_form.SecondS.value = 0;
document.getElementById("SecondSDISP").innerHTML = '0'; document.getElementById("SecondSDISP").innerHTML = '0';
agent_events('call_answered', CalLCID); agent_events('call_answered', CalLCID, aec); aec++;
if (uniqueid_status_display=='ENABLED') if (uniqueid_status_display=='ENABLED')
{custom_call_id = " Call ID " + VDIC_data_VDAC[1];} {custom_call_id = " Call ID " + VDIC_data_VDAC[1];}
@@ -11615,7 +11617,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var dial_display_number = phone_number_format(callnum); var dial_display_number = phone_number_format(callnum);
alert(" <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + "\n <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " &nbsp; " + VDIC_fronter); alert(" <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + "\n <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " &nbsp; " + VDIC_fronter);
} }
agent_events('other_answered', CalL_AutO_LauncH); agent_events('other_answered', CalL_AutO_LauncH, aec); aec++;
} }
xmlhttprequestcheckother = undefined; xmlhttprequestcheckother = undefined;
delete xmlhttprequestcheckother; delete xmlhttprequestcheckother;
@@ -12152,7 +12154,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
// alert(xmlhttp.responseText); // alert(xmlhttp.responseText);
// } // }
agent_events('agent_hangup', ''); agent_events('agent_hangup', '', aec); aec++;
} }
} }
process_post_hangup=1; process_post_hangup=1;
@@ -12416,7 +12418,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
Nactiveext = xmlhttp.responseText; Nactiveext = xmlhttp.responseText;
// alert(xmlhttp.responseText); // alert(xmlhttp.responseText);
agent_events('3way_agent_hangup', ''); agent_events('3way_agent_hangup', '', aec); aec++;
} }
} }
process_post_hangup=1; process_post_hangup=1;
@@ -12759,7 +12761,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
PauseCode_HTML = PauseCode_HTML + "</span></font></td></tr></table><br /><br />" + Go_BacK_LinK; PauseCode_HTML = PauseCode_HTML + "</span></font></td></tr></table><br /><br />" + Go_BacK_LinK;
document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML; document.getElementById("PauseCodeSelectContent").innerHTML = PauseCode_HTML;
agent_events('pause_code_open', ''); agent_events('pause_code_open', '', aec); aec++;
} }
} }
if (focus_blur_enabled==1) if (focus_blur_enabled==1)
@@ -12813,7 +12815,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
showDiv('SearcHForMDisplaYBox'); showDiv('SearcHForMDisplaYBox');
if ( (VD_live_customer_call!=1) || (inOUT=='OUT') ) if ( (VD_live_customer_call!=1) || (inOUT=='OUT') )
{WaitingForNextStep=1;} {WaitingForNextStep=1;}
agent_events('lead_search_open', ''); agent_events('lead_search_open', '', aec); aec++;
} }
} }
@@ -12826,7 +12828,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{button_click_log = button_click_log + "" + SQLdate + "-----generate_contacts_search---|";} {button_click_log = button_click_log + "" + SQLdate + "-----generate_contacts_search---|";}
HidEGenDerPulldown(); HidEGenDerPulldown();
showDiv('SearcHContactsDisplaYBox'); showDiv('SearcHContactsDisplaYBox');
agent_events('contact_search_open', ''); agent_events('contact_search_open', '', aec); aec++;
} }
@@ -13125,7 +13127,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
showDiv('CallBackSelectBox'); showDiv('CallBackSelectBox');
agent_events('callback_select_open', ''); agent_events('callback_select_open', '', aec); aec++;
} }
else else
{ {
@@ -13180,7 +13182,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
waiting_on_dispo=0; waiting_on_dispo=0;
agent_events('dispo_set', DispoChoice); agent_events('dispo_set', DispoChoice, aec); aec++;
} }
} }
delete xmlhttp; delete xmlhttp;
@@ -13825,7 +13827,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{ {
showDiv('CustomerGoneBox'); showDiv('CustomerGoneBox');
agent_events('customer_gone', ''); agent_events('customer_gone', '', aec); aec++;
document.getElementById("callchannel").innerHTML = ''; document.getElementById("callchannel").innerHTML = '';
document.vicidial_form.callserverip.value = ''; document.vicidial_form.callserverip.value = '';
@@ -13854,7 +13856,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
function NoneInSession() function NoneInSession()
{ {
showDiv('NoneInSessionBox'); showDiv('NoneInSessionBox');
agent_events('none_in_session', ''); agent_events('none_in_session', '', aec); aec++;
document.getElementById("NoneInSessionID").innerHTML = session_id; document.getElementById("NoneInSessionID").innerHTML = session_id;
WaitingForNextStep=1; WaitingForNextStep=1;
} }
@@ -14134,7 +14136,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
hideDiv('CloserSelectBox'); hideDiv('CloserSelectBox');
agent_events('ingroup_screen_closed', ''); agent_events('ingroup_screen_closed', '', aec); aec++;
MainPanelToFront(); MainPanelToFront();
CloserSelecting = 0; CloserSelecting = 0;
scroll(0,0); scroll(0,0);
@@ -14297,7 +14299,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
hideDiv('TerritorySelectBox'); hideDiv('TerritorySelectBox');
agent_events('territory_screen_closed', ''); agent_events('territory_screen_closed', '', aec); aec++;
MainPanelToFront(); MainPanelToFront();
TerritorySelecting = 0; TerritorySelecting = 0;
scroll(0,0); scroll(0,0);
@@ -14402,7 +14404,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
} }
else else
{ {
agent_events('logged_out', tempreason); agent_events('logged_out', tempreason, aec); aec++;
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESSING..."); ?></font><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=\"./images/<?php echo _QXZ("agent_loading_animation.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESSING..."); ?>\" />"; document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESSING..."); ?></font><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=\"./images/<?php echo _QXZ("agent_loading_animation.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESSING..."); ?>\" />";
// document.getElementById("LogouTProcess").innerHTML = "<?php echo _QXZ("LOGOUT PROCESSING..."); ?>"; // document.getElementById("LogouTProcess").innerHTML = "<?php echo _QXZ("LOGOUT PROCESSING..."); ?>";
@@ -14441,7 +14443,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?></font><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=\"./images/<?php echo _QXZ("agent_loading_done.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?>\" />"; document.getElementById("LogouTProcess").innerHTML = "<br /><br /><font class=\"loading_text\"><?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?></font><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src=\"./images/<?php echo _QXZ("agent_loading_done.gif"); ?>\" height=\"206px\" width=\"206px\" alt=\"<?php echo _QXZ("LOGOUT PROCESS COMPLETE, YOU MAY NOW CLOSE YOUR BROWSER OR LOG BACK IN"); ?>\" />";
agent_events('logged_out_complete', ''); agent_events('logged_out_complete', '', aec); aec++;
} }
} }
delete xmlhttp; delete xmlhttp;
@@ -16224,11 +16226,11 @@ function phone_number_format(formatphone) {
// ################################################################################ // ################################################################################
// Run the Agent Push Events process // Run the Agent Push Events process
function agent_events(event_type,event_msg) function agent_events(event_type,event_msg,event_counter)
{ {
if ( (agent_push_events > 0) && (agent_push_url.length > 10) ) if ( (agent_push_events > 0) && (agent_push_url.length > 10) )
{ {
button_click_log = button_click_log + "" + SQLdate + "-----AgentEvent---" + event_type + "|"; button_click_log = button_click_log + "" + SQLdate + "-----AgentEvent---" + event_type + " " + event_counter + "|";
// if (event_type == 'logged_out') // if (event_type == 'logged_out')
// {check_for_conf_calls(session_id, '0');} // {check_for_conf_calls(session_id, '0');}
var xmlhttp=false; var xmlhttp=false;
@@ -16264,6 +16266,7 @@ function phone_number_format(formatphone) {
var SClead_id = document.vicidial_form.lead_id.value; var SClead_id = document.vicidial_form.lead_id.value;
var SCepoch = UnixTime; var SCepoch = UnixTime;
var SCagent_log_id = agent_log_id; var SCagent_log_id = agent_log_id;
var SCcounter = event_counter;
SCuser = SCuser.replace(RGplus,'+'); SCuser = SCuser.replace(RGplus,'+');
SCevent = SCevent.replace(RGplus,'+'); SCevent = SCevent.replace(RGplus,'+');
SCmessage = SCmessage.replace(RGplus,'+'); SCmessage = SCmessage.replace(RGplus,'+');
@@ -16274,12 +16277,14 @@ function phone_number_format(formatphone) {
var RGlead_id = new RegExp("--A--lead_id--B--","g"); var RGlead_id = new RegExp("--A--lead_id--B--","g");
var RGepoch = new RegExp("--A--epoch--B--","g"); var RGepoch = new RegExp("--A--epoch--B--","g");
var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g"); var RGagent_log_id = new RegExp("--A--agent_log_id--B--","g");
var RGcounter = new RegExp("--A--counter--B--","g");
temp_agent_push_url = temp_agent_push_url.replace(RGuser, SCuser); temp_agent_push_url = temp_agent_push_url.replace(RGuser, SCuser);
temp_agent_push_url = temp_agent_push_url.replace(RGevent, SCevent); temp_agent_push_url = temp_agent_push_url.replace(RGevent, SCevent);
temp_agent_push_url = temp_agent_push_url.replace(RGmessage, SCmessage); temp_agent_push_url = temp_agent_push_url.replace(RGmessage, SCmessage);
temp_agent_push_url = temp_agent_push_url.replace(RGlead_id, SClead_id); temp_agent_push_url = temp_agent_push_url.replace(RGlead_id, SClead_id);
temp_agent_push_url = temp_agent_push_url.replace(RGepoch, SCepoch); temp_agent_push_url = temp_agent_push_url.replace(RGepoch, SCepoch);
temp_agent_push_url = temp_agent_push_url.replace(RGagent_log_id, SCagent_log_id); temp_agent_push_url = temp_agent_push_url.replace(RGagent_log_id, SCagent_log_id);
temp_agent_push_url = temp_agent_push_url.replace(RGcounter, SCcounter);
temp_agent_push_url = temp_agent_push_url.replace(RGplus, '+'); temp_agent_push_url = temp_agent_push_url.replace(RGplus, '+');
temp_agent_push_url = temp_agent_push_url.replace(RGnl, '+'); temp_agent_push_url = temp_agent_push_url.replace(RGnl, '+');
temp_agent_push_url = temp_agent_push_url.replace(RGtab, '+'); temp_agent_push_url = temp_agent_push_url.replace(RGtab, '+');
@@ -16441,7 +16446,7 @@ function phone_number_format(formatphone) {
{ {
HidEGenDerPulldown(); HidEGenDerPulldown();
showDiv('CloserSelectBox'); showDiv('CloserSelectBox');
agent_events('ingroup_screen_open', ''); agent_events('ingroup_screen_open', '', aec); aec++;
} }
} }
} }
@@ -16469,7 +16474,7 @@ function phone_number_format(formatphone) {
if (move_on == 1) if (move_on == 1)
{ {
showDiv('TerritorySelectBox'); showDiv('TerritorySelectBox');
agent_events('territory_screen_open', ''); agent_events('territory_screen_open', '', aec); aec++;
} }
} }
@@ -16947,12 +16952,12 @@ function phone_number_format(formatphone) {
CloserSelectContent_create(); CloserSelectContent_create();
if (VU_agent_choose_ingroups_DV == "MGRLOCK") if (VU_agent_choose_ingroups_DV == "MGRLOCK")
{VU_agent_choose_ingroups_skip_count = mrglock_ig_select_ct;} {VU_agent_choose_ingroups_skip_count = mrglock_ig_select_ct;}
agent_events('ingroup_screen_open', ''); agent_events('ingroup_screen_open', '', aec); aec++;
} }
else else
{ {
hideDiv('CloserSelectBox'); hideDiv('CloserSelectBox');
agent_events('ingroup_screen_closed', ''); agent_events('ingroup_screen_closed', '', aec); aec++;
MainPanelToFront(); MainPanelToFront();
var CloserSelecting = 0; var CloserSelecting = 0;
if (dial_method == "INBOUND_MAN") if (dial_method == "INBOUND_MAN")
@@ -16970,12 +16975,12 @@ function phone_number_format(formatphone) {
TerritorySelectContent_create(); TerritorySelectContent_create();
if (agent_select_territories == "MGRLOCK") if (agent_select_territories == "MGRLOCK")
{agent_select_territories_skip_count=4;} {agent_select_territories_skip_count=4;}
agent_events('territory_screen_open', ''); agent_events('territory_screen_open', '', aec); aec++;
} }
else else
{ {
hideDiv('TerritorySelectBox'); hideDiv('TerritorySelectBox');
agent_events('territory_screen_closed', ''); agent_events('territory_screen_closed', '', aec); aec++;
MainPanelToFront(); MainPanelToFront();
var TerritorySelecting = 0; var TerritorySelecting = 0;
} }
@@ -17082,7 +17087,7 @@ function phone_number_format(formatphone) {
// alert("IFRAME submitting!"); // alert("IFRAME submitting!");
customsubmit_trigger=1; customsubmit_trigger=1;
} }
agent_events('dispo_screen_open', ''); agent_events('dispo_screen_open', '', aec); aec++;
} }
// trigger custom form submit if standard form has already been submitted or 3 seconds have gone by // trigger custom form submit if standard form has already been submitted or 3 seconds have gone by
if (customsubmit_trigger > 0) if (customsubmit_trigger > 0)
@@ -17395,7 +17400,7 @@ function phone_number_format(formatphone) {
{ {
document.getElementById("blind_monitor_alert_span_contents").innerHTML = blind_monitor_message; document.getElementById("blind_monitor_alert_span_contents").innerHTML = blind_monitor_message;
showDiv('blind_monitor_alert_span'); showDiv('blind_monitor_alert_span');
agent_events('blind_monitor_alert', ''); agent_events('blind_monitor_alert', '', aec); aec++;
} }
if ( (blind_monitor_filename.length > 0) && ( (blind_monitor_warning=='AUDIO') || (blind_monitor_warning=='ALERT_AUDIO')|| (blind_monitor_warning=='NOTICE_AUDIO') || (blind_monitor_warning=='ALL') ) ) if ( (blind_monitor_filename.length > 0) && ( (blind_monitor_warning=='AUDIO') || (blind_monitor_warning=='ALERT_AUDIO')|| (blind_monitor_warning=='NOTICE_AUDIO') || (blind_monitor_warning=='ALL') ) )
{ {
@@ -17676,9 +17681,9 @@ function phone_number_format(formatphone) {
if (check_n==2) if (check_n==2)
{ {
hideDiv('LoadingBox'); hideDiv('LoadingBox');
agent_events('logged_in', session_id + ' ' + server_ip + ' ' + version + ' ' + build + ' ' + script_name); agent_events('logged_in', session_id + ' ' + server_ip + ' ' + version + ' ' + build + ' ' + script_name, aec); aec++;
if (deactivated_old_session > 0) if (deactivated_old_session > 0)
{agent_events('session_disabled', '');} {agent_events('session_disabled', '', aec); aec++;}
if (invalid_opener > 0) if (invalid_opener > 0)
{ {
@@ -17686,7 +17691,7 @@ function phone_number_format(formatphone) {
logout_stop_timeouts = 1; logout_stop_timeouts = 1;
showDiv('InvalidOpenerSpan'); showDiv('InvalidOpenerSpan');
agent_events('login_invalid', '<?php echo _QXZ("This agent screen was not opened properly."); ?>'); agent_events('login_invalid', '<?php echo _QXZ("This agent screen was not opened properly."); ?>', aec); aec++;
} }
} }
} }
@@ -17877,7 +17882,7 @@ function phone_number_format(formatphone) {
if (custom_3way_button_transfer_enabled > 0) if (custom_3way_button_transfer_enabled > 0)
{document.getElementById("CustomXfer").innerHTML = "<img src=\"./images/<?php echo _QXZ("vdc_LB_customxfer_OFF.gif"); ?>\" border=\"0\" alt=\"Custom Transfer\" />";} {document.getElementById("CustomXfer").innerHTML = "<img src=\"./images/<?php echo _QXZ("vdc_LB_customxfer_OFF.gif"); ?>\" border=\"0\" alt=\"Custom Transfer\" />";}
agent_events('transfer_panel_open', ''); agent_events('transfer_panel_open', '', aec); aec++;
transfer_panel_open=1; transfer_panel_open=1;
} }
else else
@@ -17904,7 +17909,7 @@ function phone_number_format(formatphone) {
} }
if (transfer_panel_open > 0) if (transfer_panel_open > 0)
{ {
agent_events('transfer_panel_closed', ''); agent_events('transfer_panel_closed', '', aec); aec++;
transfer_panel_open=0; transfer_panel_open=0;
} }
} }
+1 -1
View File
@@ -6248,7 +6248,7 @@ if ($SSqc_features_active > 0)
<?php echo _QXZ("<U>CUSTOMER</U> = Time the agent is in a live call with a customer."); ?><BR> <?php echo _QXZ("<U>CUSTOMER</U> = Time the agent is in a live call with a customer."); ?><BR>
<?php echo _QXZ("And the rest is just System Statuses that the agent picked and how many, to find out what they means then head over to Admin -> System Statuses."); ?><BR> <?php echo _QXZ("And the rest is just System Statuses that the agent picked and how many, to find out what they means then head over to Admin -> System Statuses."); ?><BR>
<?php echo _QXZ("- Next table is Pause Codes."); ?><BR> <?php echo _QXZ("- Next table is Pause Codes."); ?><BR>
<?php echo _QXZ("<U>TOTAL</U> = Total time on the system (<U>WAIT</U> + <U>TALK</U> + <U>DISPO</U> + <U>PAUSE</U>)."); ?><BR> <?php echo _QXZ("<U>LOGIN TIME</U> = Total time on the system (<U>WAIT</U> + <U>TALK</U> + <U>DISPO</U> + <U>PAUSE</U>)."); ?><BR>
<?php echo _QXZ("<U>NONPAUSE</U> = Everything except pause (<U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR> <?php echo _QXZ("<U>NONPAUSE</U> = Everything except pause (<U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
<?php echo _QXZ("<U>PAUSE</U> = Only Pause."); ?><BR> <?php echo _QXZ("<U>PAUSE</U> = Only Pause."); ?><BR>
<?php echo _QXZ("- The last table is pause codes and their time (like Agent Time Detail)."); ?><BR> <?php echo _QXZ("- The last table is pause codes and their time (like Agent Time Detail)."); ?><BR>