From 14a882916a19a1617172f59bef444acd2294ba5d Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 24 Nov 2025 14:50:20 +0000 Subject: [PATCH] Added lead status display for callbacks list output git-svn-id: svn://192.168.202.10@3953 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vdc_db_query.php | 14 +++++++++----- agc_2-X/trunk/www/agc/vicidial.php | 16 +++++++++------- 2 files changed, 18 insertions(+), 12 deletions(-) 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 bd129408..ed1c2e66 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -564,10 +564,11 @@ # 250923-1755 - Added talk_sec_url features # 251002-1352 - Added call_count_limit_restrict campaign option # 251005-0931 - Added code for recording_dtmf_muting +# 251124-0935 - Added lead status display for callbacks list output # -$version = '2.14-457'; -$build = '251005-0931'; +$version = '2.14-458'; +$build = '251124-0935'; $php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=995; @@ -19888,7 +19889,7 @@ if ($ACTION == 'AGENTSview') ################################################################################ if ($ACTION == 'CALLSINQUEUEview') { - $stmt="SELECT view_calls_in_queue,grab_calls_in_queue,calls_waiting_vl_one,calls_waiting_vl_two from vicidial_campaigns where campaign_id='$campaign'"; + $stmt="SELECT view_calls_in_queue,grab_calls_in_queue,calls_waiting_vl_one,calls_waiting_vl_two,disable_alter_custphone from vicidial_campaigns where campaign_id='$campaign'"; if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00228',$user,$server_ip,$session_name,$one_mysql_log);} @@ -19897,6 +19898,7 @@ if ($ACTION == 'CALLSINQUEUEview') $grab_calls_in_queue = $row[1]; $calls_waiting_vl_one = $row[2]; $calls_waiting_vl_two = $row[3]; + $disable_alter_custphone = $row[4]; if (preg_match('/NONE/i',$view_calls_in_queue)) { @@ -22210,7 +22212,7 @@ if ($ACTION == 'CalLBacKLisT') if ($agentonly_callback_campaign_lock > 0) {$campaignCBsql = "and campaign_id='$campaign'";} - $stmt = "SELECT callback_id,lead_id,campaign_id,status,entry_time,callback_time,comments,customer_timezone,customer_time,customer_timezone_diff from vicidial_callbacks where recipient='USERONLY' and user='$user' $campaignCBsql $campaignCBhoursSQL $campaignCBdisplaydaysSQL and status NOT IN('INACTIVE','DEAD') order by callback_time;"; + $stmt = "SELECT callback_id,lead_id,campaign_id,status,entry_time,callback_time,comments,customer_timezone,customer_time,customer_timezone_diff,lead_status from vicidial_callbacks where recipient='USERONLY' and user='$user' $campaignCBsql $campaignCBhoursSQL $campaignCBdisplaydaysSQL and status NOT IN('INACTIVE','DEAD') order by callback_time;"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00178',$user,$server_ip,$session_name,$one_mysql_log);} @@ -22221,6 +22223,7 @@ if ($ACTION == 'CalLBacKLisT') $lead_id = array(); $campaign_id = array(); $status = array(); + $lead_status = array(); $entry_time = array(); $callback_time = array(); $comments = array(); @@ -22242,6 +22245,7 @@ if ($ACTION == 'CalLBacKLisT') $customer_timezone[$loop_count] = preg_replace("/.*,/",'',$row[7]); $customer_time[$loop_count] = $row[8]; $customer_timezone_diff[$loop_count] = $row[9]; + $lead_status[$loop_count] = $row[10]; $loop_count++; } $loop_count=0; @@ -22302,7 +22306,7 @@ if ($ACTION == 'CalLBacKLisT') { $customer_time_CB_output = "-!T-$customer_timezone[$loop_count]-!T-$customer_time[$loop_count]"; } - $CBoutput = "$row[0]-!T-$row[1]-!T-$row[2]-!T-$callback_id[$loop_count]-!T-$lead_id[$loop_count]-!T-$campaign_id[$loop_count]-!T-"._QXZ("$status[$loop_count]")."-!T-$entry_time[$loop_count]-!T-$callback_time[$loop_count]-!T-$comments[$loop_count]-!T-$PHONEdialable-!T-$alt_phone$customer_time_CB_output"; + $CBoutput = "$row[0]-!T-$row[1]-!T-$row[2]-!T-$callback_id[$loop_count]-!T-$lead_id[$loop_count]-!T-$campaign_id[$loop_count]-!T-"._QXZ("$status[$loop_count]")."-!T-$entry_time[$loop_count]-!T-$callback_time[$loop_count]-!T-$comments[$loop_count]-!T-$PHONEdialable-!T-$alt_phone-!T-$lead_status[$loop_count]$customer_time_CB_output"; echo "$CBoutput\n"; $loop_count++; } diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index d26eeb71..ef466cae 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -752,10 +752,11 @@ # 250924-0953 - Added Talk Seconds URLs features # 251002-1353 - Added call_count_limit_restrict campaign option # 251020-0849 - Added code for recording_dtmf_muting, fix for Stereo Call Recording +# 251124-0936 - Added lead status display for callbacks list # -$version = '2.14-718c'; -$build = '251020-0849'; +$version = '2.14-719c'; +$build = '251124-0936'; $php_script = 'vicidial.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=108; @@ -10313,7 +10314,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_calls = all_CBs_array[0]; var loop_ct=0; var conv_start=0; - var CB_HTML = "px\">\">" + var CB_HTML = "
#
px\">\">" while (loop_ct < CB_calls) { loop_ct++; @@ -10338,8 +10339,9 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_comments = call_array[9]; var CB_dialable = call_array[10]; var CB_alt_phone = call_array[11]; - var CB_cust_timezone = call_array[12]; - var CB_cust_time = call_array[13]; + var CB_lead_status = call_array[12]; + var CB_cust_timezone = call_array[13]; + var CB_cust_time = call_array[14]; var CB_comments_ten = CB_comments; var CB_cust_content=''; if (CB_cust_timezone.length > 0) @@ -10356,11 +10358,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var alt_link = " "; if (CB_alt_phone.length < 3) {alt_link = " ";} - CB_HTML = CB_HTML + "" + CB_cust_content; + CB_HTML = CB_HTML + "" + CB_cust_content; } else { - CB_HTML = CB_HTML + " + CB_cust_content"; + CB_HTML = CB_HTML + " + CB_cust_content"; } } CB_HTML = CB_HTML + "
#
" + loop_ct + "" + CB_callback_time + "" + CB_phone_display + "" + CB_comments_ten + " - " + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "  " + alt_link + "
" + loop_ct + "" + CB_callback_time + "" + CB_phone_display + "" + CB_comments_ten + " - " + CB_name + "" + CB_status + "" + CB_lead_status + "" + CB_campaign + "" + CB_lastcall_time + "  " + alt_link + "
" + loop_ct + "" + CB_callback_time + "" + CB_phone_display + "" + CB_comments_ten + " - INFO" + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "  
" + loop_ct + "" + CB_callback_time + "" + CB_phone_display + "" + CB_comments_ten + " - INFO" + CB_name + "" + CB_status + "" + CB_lead_status + "" + CB_campaign + "" + CB_lastcall_time + "  
";