";
+ }
+
+
+################################################################################
+### LEADINFOview - display the information for a lead
+################################################################################
+if ($ACTION == 'LEADINFOview')
+ {
+ if (strlen($lead_id) < 1)
+ {echo "ERROR: no Lead ID";}
+ else
+ {
+ echo "
\n";
+ echo "
";
+
+ $stmt="select status,vendor_lead_code,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner from vicidial_list where lead_id='$lead_id'limit 1;";
+ $rslt=mysql_query($stmt, $link);
+ $info_to_print = mysql_num_rows($rslt);
+ if ($format=='debug') {echo "|$out_logs_to_print|$stmt|";}
+
+ if ($info_to_print > 0)
+ {
+ $row=mysql_fetch_row($rslt);
+ echo "
";
+ }
+ }
+
+
################################################################################
### CALLSINQUEUEgrab - grab a call in queue and reserve it for that agent
################################################################################
@@ -6572,12 +7021,12 @@ if ($ACTION == 'CALLSINQUEUEgrab')
}
else
{
- $stmt="UPDATE vicidial_auto_calls set agent_grab=\"$user\" where auto_call_id='$stage' and agent_grab='' and status='LIVE';";
+ $stmtU="UPDATE vicidial_auto_calls set agent_grab=\"$user\" where auto_call_id='$stage' and agent_grab='' and status='LIVE';";
if ($format=='debug') {echo "\n";}
- $rslt=mysql_query($stmt, $link);
+ $rslt=mysql_query($stmtU, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00234',$user,$server_ip,$session_name,$one_mysql_log);}
- $affected_rows = mysql_affected_rows($link);
- if ($affected_rows > 0)
+ $VACaffected_rows = mysql_affected_rows($link);
+ if ($VACaffected_rows > 0)
{
$stmt="SELECT call_time,campaign_id,uniqueid,phone_number,lead_id,queue_priority,call_type from vicidial_auto_calls where auto_call_id='$stage';";
$rslt=mysql_query($stmt, $link);
@@ -6602,13 +7051,27 @@ if ($ACTION == 'CALLSINQUEUEgrab')
}
echo "SUCCESS: Call $stage grabbed for $user";
- exit;
}
else
{
echo "ERROR: Call $stage could not be grabbed for $user\n";
- exit;
}
+
+ $stmtD="SELECT * from vicidial_auto_calls where auto_call_id='$stage';";
+ $rslt=mysql_query($stmtD, $link);
+ if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00321',$user,$server_ip,$session_name,$one_mysql_log);}
+ if ($rslt) {$DEBUGvac_count = mysql_num_rows($rslt);}
+ if ($DEBUGvac_count > 0)
+ {
+ $row=mysql_fetch_row($rslt);
+ if ($WeBRooTWritablE > 0)
+ {
+ $fp = fopen ("./vicidial_debug.txt", "a");
+ fwrite ($fp, "$NOW_TIME|GRAB_CALL |$stmtU|$VACaffected_rows|$stmtD|$row[0]|$row[1]|$row[2]|$row[3]|$row[4]|$row[5]|$row[6]|$row[7]|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|$row[14]|$row[15]|$row[16]|$row[17]|$row[18]|\n");
+ fclose($fp);
+ }
+ }
+ exit;
}
}
diff --git a/agc_2-X/trunk/LANG_www/agc_es/vdc_script_display.php b/agc_2-X/trunk/LANG_www/agc_es/vdc_script_display.php
index 8c9bb87d..81115084 100644
--- a/agc_2-X/trunk/LANG_www/agc_es/vdc_script_display.php
+++ b/agc_2-X/trunk/LANG_www/agc_es/vdc_script_display.php
@@ -11,10 +11,11 @@
# 91204-1913 - Added recording_filename and recording_id variables
# 91211-1103 - Added user_custom_... variables
# 100116-0702 - Added preset variables
+# 100127-1611 - Added ignore_list_script_override option
#
-$version = '2.2.0-5';
-$build = '100116-0702';
+$version = '2.2.0-6';
+$build = '100127-1611';
require("dbconnect.php");
@@ -177,7 +178,6 @@ $CIDdate = date("mdHis");
$ENTRYdate = date("YmdHis");
$MT[0]='';
$agents='@agents';
-
$script_height = ($script_height - 20);
$IFRAME=0;
@@ -252,6 +252,19 @@ if (strlen($in_script) < 1)
else
{$call_script = $in_script;}
+$ignore_list_script_override='N';
+$stmt = "SELECT ignore_list_script_override FROM vicidial_inbound_groups where group_id='$group';";
+$rslt=mysql_query($stmt, $link);
+if ($DB) {echo "$stmt\n";}
+$ilso_ct = mysql_num_rows($rslt);
+if ($ilso_ct > 0)
+ {
+ $row=mysql_fetch_row($rslt);
+ $ignore_list_script_override = $row[0];
+ }
+if ($ignore_list_script_override=='Y')
+ {$ignore_list_script=1;}
+
if ($ignore_list_script < 1)
{
$stmt="SELECT agent_script_override from vicidial_lists where list_id='$list_id';";
diff --git a/agc_2-X/trunk/LANG_www/agc_es/vicidial.php b/agc_2-X/trunk/LANG_www/agc_es/vicidial.php
index 7026bea2..588193fe 100644
--- a/agc_2-X/trunk/LANG_www/agc_es/vicidial.php
+++ b/agc_2-X/trunk/LANG_www/agc_es/vicidial.php
@@ -272,14 +272,20 @@
# 100109-0801 - Added ALTNUM alt number status, fixed alt number dialing from setting
# 100109-1338 - Fixed Manual dial live call detection
# 100116-0709 - Added presets to script and web form variables
-# 100203-0640 - Fixed logging issues related to INBOUND_MAN dial method
-# 100207-1109 - Changed Pause Codes function to allow for multiple pause codes per pause period
-# 100228-1257 - Fixed no-selected default transfer group issue on inbound calls
-# 100301-1329 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field
+# 100123-0954 - changes to AGENTDIRECT selection span
+# 100131-2233 - Added functions to allow for a webphone loaded in a separate IFRAME
+# 100203-0639 - Fixed logging issues related to INBOUND_MAN dial method
+# 100207-1103 - Changed Pause Codes function to allow for multiple pause codes per pause period
+# 100220-1040 - Added Call Log View and Customer Info View and fixed HotKeys position
+# 100221-1107 - Added Custom CID compatibility
+# 100301-1330 - Changed AGENTDIRECT user selection launching to AGENTS link next to number-to-dial field
+# 100302-2145 - Added scheduled callbacks alert feature
+# 100306-0852 - Added options.php optional file for setting interface options that will survive upgrade
+# 100309-0525 - Added queuemetrics_loginout option
#
-$version = '2.2.0-254';
-$build = '100301-1329';
+$version = '2.4-260';
+$build = '100309-0525';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=64;
$one_mysql_log=0;
@@ -361,7 +367,7 @@ $random = (rand(1000000, 9999999) + 10000000);
#############################################
##### START SYSTEM_SETTINGS LOOKUP #####
-$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active FROM system_settings;";
+$stmt = "SELECT use_non_latin,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,webroot_writable,timeclock_end_of_day,vtiger_url,enable_vtiger_integration,outbound_autodial_active,enable_second_webform,user_territories_active,static_agent_url FROM system_settings;";
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01001',$VD_login,$server_ip,$session_name,$one_mysql_log);}
if ($DB) {echo "$stmt\n";}
@@ -380,6 +386,7 @@ if ($qm_conf_ct > 0)
$outbound_autodial_active = $row[8];
$enable_second_webform = $row[9];
$user_territories_active = $row[10];
+ $static_agent_url = $row[11];
}
##### END SETTINGS LOOKUP #####
###########################################
@@ -387,48 +394,50 @@ if ($qm_conf_ct > 0)
##### DEFINABLE SETTINGS AND OPTIONS
###########################################
-$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording
-$dtmf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently
-$HKuser_level = '5'; # minimum vicidial user_level for HotKeys
-$campaign_login_list = '1'; # show drop-down list of campaigns at login
-$manual_dial_preview = '1'; # allow preview lead option when manual dial
-$multi_line_comments = '1'; # set to 1 to allow multi-line comment box
-$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
-$view_scripts = '1'; # set to 1 to show the SCRIPTS tab
-$dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
-$callholdstatus = '1'; # set to 1 to show calls en hold count
-$agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
- $campagentstatctmax = '3'; # Number of segundos for campaign call and agent stats
-$show_campname_pulldown = '1'; # set to 1 to show campaign name en login pulldown
-$webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
-$local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
-$clientDST = '1'; # set to 1 to check for DST en server for agent time
-$no_delete_sessions = '1'; # set to 1 to not delete sessions at logout
-$volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels
-$PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets
-$LogiNAJAX = '1'; # set to 1 to do lookups en campaigns for login
-$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
-$hangup_all_non_reserved= '1'; # set to 1 to force hangup all non-reserved channels upon Colgar al Cliente
-$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
-$PhonESComPIP = '1'; # set to 1 to log computer IP to phone if blank, set to 2 to force log each login
-$DefaulTAlTDiaL = '0'; # set to 1 to enable ALT DIAL by default if enabled for the campaign
-$AgentAlert_allowed = '1'; # set to 1 to allow Agent alert option
-$disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from the in-group chooser screen
-$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
+if (file_exists('options.php'))
+ {
+ require('options.php');
+ }
+else
+ {
+ $conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording
+ $dtmf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently
+ $HKuser_level = '5'; # minimum vicidial user_level for HotKeys
+ $campaign_login_list = '1'; # show drop-down list of campaigns at login
+ $manual_dial_preview = '1'; # allow preview lead option when manual dial
+ $multi_line_comments = '1'; # set to 1 to allow multi-line comment box
+ $user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
+ $view_scripts = '1'; # set to 1 to show the SCRIPTS tab
+ $dispo_check_all_pause = '0'; # set to 1 to allow for persistent pause after dispo
+ $callholdstatus = '1'; # set to 1 to show calls en hold count
+ $agentcallsstatus = '0'; # set to 1 to show agent status and call dialed count
+ $campagentstatctmax = '3'; # Number of segundos for campaign call and agent stats
+ $show_campname_pulldown = '1'; # set to 1 to show campaign name en login pulldown
+ $webform_sessionname = '1'; # set to 1 to include the session_name in webform URL
+ $local_consult_xfers = '1'; # set to 1 to send consultative transfers from original server
+ $clientDST = '1'; # set to 1 to check for DST en server for agent time
+ $no_delete_sessions = '1'; # set to 1 to not delete sessions at logout
+ $volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels
+ $PreseT_DiaL_LinKs = '0'; # set to 1 to show a DIAL link for Dial Presets
+ $LogiNAJAX = '1'; # set to 1 to do lookups en campaigns for login
+ $HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
+ $hangup_all_non_reserved= '1'; # set to 1 to force hangup all non-reserved channels upon Colgar al Cliente
+ $LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
+ $PhonESComPIP = '1'; # set to 1 to log computer IP to phone if blank, set to 2 to force log each login
+ $DefaulTAlTDiaL = '0'; # set to 1 to enable ALT DIAL by default if enabled for the campaign
+ $AgentAlert_allowed = '1'; # set to 1 to allow Agent alert option
+ $disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from the in-group chooser screen
-$stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window
-$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500
-$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770
-$MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6
-$SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0
-$SIDEBAR_COLOR = '#F6F6F6';
+ $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
-# options now set in DB:
-#$alt_phone_dialing = '1'; # allow agents to call alt phone numbers
-#$scheduled_callbacks = '1'; # set to 1 to allow agent to choose scheduled callbacks
-# $agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks
-#$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session
+ $stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window
+ $BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500
+ $BROWSER_WIDTH = 770; # set to the minimum browser width, default=770
+ $MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6
+ $SCRIPT_COLOR = '#E6E6E6'; # old default is FFE7D0
+ $SIDEBAR_COLOR = '#F6F6F6';
+ }
$US='_';
@@ -447,6 +456,8 @@ if (($server_port == '80') or ($server_port == '443') ) {$server_port='';}
else {$server_port = "$CL$server_port";}
$agcPAGE = "$HTTPprotocol$server_name$server_port$script_name";
$agcDIR = eregi_replace('vicidial.php','',$agcPAGE);
+if (strlen($static_agent_url) > 5)
+ {$agcPAGE = $static_agent_url;}
header ("Content-type: text/html; charset=utf-8");
@@ -660,66 +671,27 @@ else
}
if ($relogin == 'YES')
-{
-echo "Agent web client: Conexión Otra Vez\n";
-echo "\n";
-echo "\n";
-echo "Timeclock \n";
-echo "