diff --git a/www/vicidial/admin_modify_lead.php b/www/vicidial/admin_modify_lead.php index 7de8b00e..6b515eaf 100644 --- a/www/vicidial/admin_modify_lead.php +++ b/www/vicidial/admin_modify_lead.php @@ -1009,7 +1009,7 @@ else if ($rowx[0] > 0) { - $stmt="select recording_web_link,alt_server_ip from servers where server_ip='$URLserver_ip';"; + $stmt="select recording_web_link,alt_server_ip,external_server_ip from servers where server_ip='$URLserver_ip';"; $rsltx=mysql_query($stmt, $link); $rowx=mysql_fetch_row($rsltx); @@ -1017,6 +1017,10 @@ else { $location = eregi_replace($URLserver_ip, $rowx[1], $location); } + if (eregi("EXTERNAL_IP",$rowx[0])) + { + $location = eregi_replace($URLserver_ip, $rowx[2], $location); + } } } diff --git a/www/vicidial/user_stats.php b/www/vicidial/user_stats.php index 3d2d189f..abd7a7c2 100644 --- a/www/vicidial/user_stats.php +++ b/www/vicidial/user_stats.php @@ -837,7 +837,7 @@ echo "# LEAD 0) { - $stmt="select recording_web_link,alt_server_ip from servers where server_ip='$URLserver_ip';"; + $stmt="select recording_web_link,alt_server_ip,external_server_ip from servers where server_ip='$URLserver_ip';"; $rsltx=mysql_query($stmt, $link); $rowx=mysql_fetch_row($rsltx); @@ -845,6 +845,10 @@ echo "# LEAD