Fixed issue with qc_modify_lead.php external server ip recording links
git-svn-id: svn://192.168.202.10@2547 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# ADMIN_area_code_populate.pl version 2.12
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# Description:
|
||||
# server application that allows load areacodes into to asterisk list database
|
||||
@@ -13,7 +13,7 @@
|
||||
# - changed to use /etc/astguiclient.conf for configs
|
||||
# 61122-1902 - Added GMT_USA_zip.txt data import for USA postal GMT data
|
||||
# 80416-1017 - Added download of phone codes from remote host
|
||||
# 90129-0932 - Added optional NANP prefix/time date import "--load-NANPA-prefix" flag
|
||||
# 90129-0932 - Added optional NANPA prefix/time date import "--load-NANPA-prefix" flag
|
||||
# 90131-0933 - Added purge-table option to clear out old records before adding new ones
|
||||
# 90204-0806 - Added duplicate check to nanpa list loading
|
||||
# 90317-2353 - Added city, state, postal_code, country to nanpa format
|
||||
@@ -22,13 +22,14 @@
|
||||
# 130419-1237 - Added lata_type field to NANPA file format
|
||||
# 150203-1751 - code cleanup
|
||||
# 151228-1043 - Added ISO-TLD table and import
|
||||
# 160611-0933 - Added more documentation
|
||||
#
|
||||
|
||||
|
||||
# default path to astguiclient configuration file:
|
||||
$PATHconf = "/etc/astguiclient.conf";
|
||||
$domain = "http://phonecodes.vicidial.com";
|
||||
#$URL1 = "$domain/phone_codes_GMT-latest.txt";
|
||||
#$URL1 = "$domain/phone_codes_GMT-latest.txt";
|
||||
$URL1 = "$domain/phone_codes_GMT-latest-24.txt";
|
||||
$URL2 = "$domain/GMT_USA_zip-latest.txt";
|
||||
$URL3 = "$domain/country_ISO_TLD-latest.txt";
|
||||
@@ -52,12 +53,21 @@ if (length($ARGV[0])>1)
|
||||
print " [--debug] = debug output\n";
|
||||
print " [--use-local-files] = Do not download files, use local copies\n";
|
||||
print " [--load-NANPA-prefix] = Only loads the special NANPA list into the database\n";
|
||||
print " NOTE: NANPA data must be purchased from 'http://vicidial.org/store.php'\n";
|
||||
print " [--purge-table] = Purges the table to be inserted before inserting\n";
|
||||
print "\n files used by this script are:\n";
|
||||
print "\n";
|
||||
print " Files used by this script are:\n";
|
||||
print " phone_codes_GMT-latest-24.txt - Phone codes and country codes with time zone data\n";
|
||||
print " GMT_USA_zip-latest.txt - USA zip code and time zone data\n";
|
||||
print " country_ISO_TLD-latest.txt - Country code ISO and TLD data\n";
|
||||
print " NANPA_prefix-latest.txt - North American areacode, prefix and time zone data\n";
|
||||
print "\n";
|
||||
print " Update schedules for data files:\n";
|
||||
print " phone_codes - Usually a few times a year, as areacodes in North America are added\n";
|
||||
print " GMT_USA_zip - About once per year\n";
|
||||
print " country_ISO_TLD - Only when country code data changes, not frequently\n";
|
||||
print " NANPA_prefix - About once per year\n";
|
||||
print "\n";
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# qc_modify_lead.php
|
||||
#
|
||||
# Copyright (C) 2012 poundteam.com LICENSE: AGPLv2
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to allow QC review and modification of leads, contributed by poundteam.com
|
||||
#
|
||||
@@ -23,6 +23,7 @@
|
||||
# 150808-1437 - Added compatibility for custom fields data options
|
||||
# 150908-1531 - Fixed input lengths for several standard fields to match DB
|
||||
# 150917-1311 - Added dynamic default field maxlengths based on DB schema
|
||||
# 160611-1217 - Fixed for external server IP recording link issue
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -1326,7 +1327,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_to_mysqli($stmt, $link);
|
||||
$rowx=mysqli_fetch_row($rsltx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user