diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index 26f7cd54..db44c6d2 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -449,10 +449,11 @@ # 180210-0707 - Fix for callback list issue #1062 # 180212-0654 - Added callback_datetime as dispo call url variable # 180214-1553 - Added CID Group functionality +# 180216-1350 - Fix for callback alt dial isssue #1066 # -$version = '2.14-343'; -$build = '180214-1553'; +$version = '2.14-344'; +$build = '180216-1350'; $php_script = 'vdc_db_query.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=709; @@ -16121,13 +16122,15 @@ if ($ACTION == 'CalLBacKLisT') $loop_count=0; while ($callbacks_count>$loop_count) { - $stmt = "SELECT first_name,last_name,phone_number,gmt_offset_now,state,list_id from vicidial_list where lead_id='$lead_id[$loop_count]';"; + $alt_phone=''; + $stmt = "SELECT first_name,last_name,phone_number,gmt_offset_now,state,list_id,alt_phone from vicidial_list where lead_id='$lead_id[$loop_count]';"; if ($DB) {echo "$stmt\n";} $rslt=mysql_to_mysqli($stmt, $link); if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00179',$user,$server_ip,$session_name,$one_mysql_log);} $row=mysqli_fetch_row($rslt); - $PHONEdialable=1; + $alt_phone = $row[6]; + if ($callback_list_calltime == 'ENABLED') { $state = $row[4]; @@ -16169,7 +16172,7 @@ if ($ACTION == 'CalLBacKLisT') $PHONEdialable = dialable_gmt($DB,$link,$local_call_time,$row[3],$row[4]); } } - $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"; + $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"; echo "$CBoutput\n"; $loop_count++; } diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 6a6f80c0..df6ee3e3 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -580,10 +580,11 @@ # 180204-2304 - Added API dial_ingroup option to external_dial # 180210-0001 - Added flag for WebRTC webphone compatibility in iframe # 180215-1105 - Changes for CID Groups functionality +# 180216-1349 - Fix for callback alt dial isssue #1066 # -$version = '2.14-550c'; -$build = '180215-1105'; +$version = '2.14-551c'; +$build = '180216-1349'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -7227,6 +7228,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection) var CB_callback_time = call_array[8]; var CB_comments = call_array[9]; var CB_dialable = call_array[10]; + var CB_alt_phone = call_array[11]; var CB_comments_ten = CB_comments; if (CB_comments_ten.length > 10) { @@ -7235,7 +7237,10 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } if (CB_dialable > 0) { - CB_HTML = CB_HTML + "" + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - " + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "   "; + var alt_link = " "; + if (CB_alt_phone.length < 3) + {alt_link = " ";} + CB_HTML = CB_HTML + "" + loop_ct + "" + CB_callback_time + "" + CB_phone + "" + CB_comments_ten + " - " + CB_name + "" + CB_status + "" + CB_campaign + "" + CB_lastcall_time + "  " + alt_link + ""; } else {