Fix for callback alt dial isssue #1066
git-svn-id: svn://192.168.202.10@2920 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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 + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_callback_time + "</td><td align=\"right\"><font class=\"log_text\">" + CB_phone + "</td><td align=\"right\"><font class=\"log_text\">" + CB_comments_ten + " - <a href=\"#\" onclick=\"VieWLeaDInfO('" + CB_lead_id + "','" + CB_id + "');return false;\"><?php echo _QXZ("INFO"); ?></a></font></td><td align=\"right\"><font class=\"log_text\">" + CB_name + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_status + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_campaign + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_lastcall_time + " </font></td><td align=\"right\"><font class=\"log_text\"><a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "','MAIN');return false;\"><?php echo _QXZ("DIAL"); ?></a> </font></td><td align=\"right\"><font class=\"log_text\"><a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "','ALT');return false;\"><?php echo _QXZ("ALT"); ?></a> </font></td></tr>";
|
||||
var alt_link = "<a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "','ALT');return false;\"><?php echo _QXZ("ALT"); ?></a> ";
|
||||
if (CB_alt_phone.length < 3)
|
||||
{alt_link = "<?php echo _QXZ("ALT"); ?> ";}
|
||||
CB_HTML = CB_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_callback_time + "</td><td align=\"right\"><font class=\"log_text\">" + CB_phone + "</td><td align=\"right\"><font class=\"log_text\">" + CB_comments_ten + " - <a href=\"#\" onclick=\"VieWLeaDInfO('" + CB_lead_id + "','" + CB_id + "');return false;\"><?php echo _QXZ("INFO"); ?></a></font></td><td align=\"right\"><font class=\"log_text\">" + CB_name + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_status + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_campaign + "</font></td><td align=\"right\"><font class=\"log_text\">" + CB_lastcall_time + " </font></td><td align=\"right\"><font class=\"log_text\"><a href=\"#\" onclick=\"new_callback_call('" + CB_id + "','" + CB_lead_id + "','MAIN');return false;\"><?php echo _QXZ("DIAL"); ?></a> </font></td><td align=\"right\"><font class=\"log_text\">" + alt_link + "</font></td></tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user