Added ability to have a webphone in an IFRAM in the agent browser
git-svn-id: svn://192.168.202.10@1324 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -29,11 +29,14 @@ OTHER CHANGES:
|
||||
to use AFTHRS/NANQUE/TIMEOT statuses respectively
|
||||
|
||||
2. Added an option to record calls that enter through a DID until they end or
|
||||
enter an in-group queue
|
||||
enter an in-group queue. MUST ENABLE --MIX CRONTAB ENTRY!!!
|
||||
|
||||
3. Added ability to have AGENTDIRECT calls that drop go to user's defined
|
||||
voicemail box
|
||||
|
||||
4. Added ability to use a webphone added in an IFRAME in the agent screen.
|
||||
Tested with Zoiper webphone and sample code included
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ phone_context VARCHAR(20) default 'default',
|
||||
phone_ring_timeout SMALLINT(3) default '60',
|
||||
conf_secret VARCHAR(20) default 'test',
|
||||
delete_vm_after_email ENUM('N','Y') default 'N',
|
||||
is_webphone ENUM('Y','N') default 'N',
|
||||
use_external_server_ip ENUM('Y','N') default 'N',
|
||||
index (server_ip),
|
||||
unique index extenserver (extension, server_ip)
|
||||
);
|
||||
@@ -100,7 +102,7 @@ vd_server_logs ENUM('Y','N') default 'Y',
|
||||
agi_output ENUM('NONE','STDERR','FILE','BOTH') default 'FILE',
|
||||
vicidial_balance_active ENUM('Y','N') default 'N',
|
||||
balance_trunks_offlimits SMALLINT(5) UNSIGNED default '0',
|
||||
recording_web_link ENUM('SERVER_IP','ALT_IP') default 'SERVER_IP',
|
||||
recording_web_link ENUM('SERVER_IP','ALT_IP','EXTERNAL_IP') default 'SERVER_IP',
|
||||
alt_server_ip VARCHAR(100) default '',
|
||||
active_asterisk_server ENUM('Y','N') default 'Y',
|
||||
generate_vicidial_conf ENUM('Y','N') default 'Y',
|
||||
@@ -116,7 +118,8 @@ carrier_logging_active ENUM('Y','N') default 'Y',
|
||||
vicidial_balance_rank TINYINT(3) UNSIGNED default '0',
|
||||
rebuild_music_on_hold ENUM('Y','N') default 'Y',
|
||||
active_agent_login_server ENUM('Y','N') default 'Y',
|
||||
conf_secret VARCHAR(20) default 'test'
|
||||
conf_secret VARCHAR(20) default 'test',
|
||||
external_server_ip VARCHAR(100) default ''
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX server_id on servers (server_id);
|
||||
@@ -1197,7 +1200,10 @@ auto_dial_limit VARCHAR(5) default '4',
|
||||
user_territories_active ENUM('0','1') default '0',
|
||||
allow_custom_dialplan ENUM('0','1') default '0',
|
||||
db_schema_update_date DATETIME,
|
||||
enable_second_webform ENUM('0','1') default '1'
|
||||
enable_second_webform ENUM('0','1') default '1',
|
||||
default_webphone ENUM('1','0') default '0',
|
||||
default_external_server_ip ENUM('1','0') default '0',
|
||||
webphone_url VARCHAR(255) default ''
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -2034,7 +2040,7 @@ ALTER TABLE vicidial_agent_log_archive MODIFY agent_log_id INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_carrier_log_archive LIKE vicidial_carrier_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1197',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1198',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -22,3 +22,15 @@ UPDATE system_settings SET db_schema_version='1196',db_schema_update_date=NOW();
|
||||
ALTER TABLE vicidial_inbound_groups ADD ignore_list_script_override ENUM('Y','N') default 'N';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1197',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE servers ADD external_server_ip VARCHAR(100) default '';
|
||||
ALTER TABLE servers MODIFY recording_web_link ENUM('SERVER_IP','ALT_IP','EXTERNAL_IP') default 'SERVER_IP';
|
||||
|
||||
ALTER TABLE phones ADD is_webphone ENUM('Y','N') default 'N';
|
||||
ALTER TABLE phones ADD use_external_server_ip ENUM('Y','N') default 'N';
|
||||
|
||||
ALTER TABLE system_settings ADD default_webphone ENUM('1','0') default '0';
|
||||
ALTER TABLE system_settings ADD default_external_server_ip ENUM('1','0') default '0';
|
||||
ALTER TABLE system_settings ADD webphone_url VARCHAR(255) default '';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1198',db_schema_update_date=NOW();
|
||||
|
||||
@@ -9,6 +9,18 @@ This option allows you to set the calls coming into this DID to be recorded. Y w
|
||||
Click here to see a list of recordings and calls for this DID||
|
||||
Ignore List Script Override||
|
||||
This option allows you to ignore the list ID Script Override option for calls coming into this In-Group. Setting this to Y will ignore any List ID script settings. Default is N||
|
||||
External Server IP||
|
||||
This setting is where you can put a server IP or other machine name that can be used in place of the server_ip when using a webphone in the agent interface. For this to work you also must have the phones entry set to use the External Server IP. Default is empty||
|
||||
Set As Webphone||
|
||||
Setting this option to Y will attempt to load a web-based phone when the agent logs into their agent screen. Default is N.||
|
||||
Use External Server IP||
|
||||
If using as a web phone, you can set this to Y to use the servers External IP to register to instead of the Server IP. Default is empty||
|
||||
Default Webphone||
|
||||
If set to 1, this option will make all new phones created have Set As Webphone set to Y. Default is 0||
|
||||
Default External Server IP||
|
||||
If set to 1, this option will make all new phones created have Use External Server IP set to Y. Default is 0||
|
||||
Webphone URL||
|
||||
This is the URL of the webphone that will be used with this system if it is enabled in the phones record that an agent is using. Default is empty||
|
||||
|
||||
|
||||
############################################################ CLIENT
|
||||
|
||||
+1873
-1807
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
# zoiperweb.php - the web-based Zoiper softphone
|
||||
#
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# variables sent to this script:
|
||||
# $phone_login - phone login
|
||||
# $phone_pass - phone password
|
||||
# $server_ip - the server that you are to login to
|
||||
# $callerid - the callerid number
|
||||
# $protocol - IAX or SIP
|
||||
#
|
||||
# CHANGELOG
|
||||
# 100130-2359 - First Build of VICIDIAL web client basic login process finished
|
||||
#
|
||||
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["phone_login"])) {$phone_login=$_GET["phone_login"];}
|
||||
elseif (isset($_POST["phone_login"])) {$phone_login=$_POST["phone_login"];}
|
||||
if (isset($_GET["phone_pass"])) {$phone_pass=$_GET["phone_pass"];}
|
||||
elseif (isset($_POST["phone_pass"])) {$phone_pass=$_POST["phone_pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["callerid"])) {$callerid=$_GET["callerid"];}
|
||||
elseif (isset($_POST["callerid"])) {$callerid=$_POST["callerid"];}
|
||||
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
||||
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
||||
|
||||
$b64_phone_login = base64_decode($phone_login);
|
||||
$b64_phone_pass = base64_decode($phone_pass);
|
||||
$b64_server_ip = base64_decode($server_ip);
|
||||
$b64_callerid = base64_decode($callerid);
|
||||
$b64_protocol = base64_decode($protocol);
|
||||
if ($b64_protocol != 'SIP')
|
||||
{$b64_protocol = 'IAX';}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Zoiper web</title>
|
||||
</head>
|
||||
<body onload="Init()" onunload="Quit()">
|
||||
<script type="text/javascript">
|
||||
var Zoiper;
|
||||
var ActiveCall;
|
||||
function GetValue(name)
|
||||
{
|
||||
return document.getElementById(name).value;
|
||||
}
|
||||
function Init()
|
||||
{
|
||||
document.getElementById("Status").style.visibility = 'hidden';
|
||||
}
|
||||
function Quit()
|
||||
{
|
||||
Zoiper.DelContact("web demo");
|
||||
Zoiper.DelAccount("Sample");
|
||||
|
||||
// On firefox new instance of plugin is created before old one is destroyed
|
||||
// Because of this we must manually destroy existing plugin
|
||||
document.getElementById('ZoiperA').innerHTML = "";
|
||||
}
|
||||
function Hang()
|
||||
{
|
||||
if (null != ActiveCall)
|
||||
ActiveCall.Hang();
|
||||
ActiveCall = null;
|
||||
}
|
||||
function Dial()
|
||||
{
|
||||
ActiveCall = Zoiper.Dial(GetValue("number"));
|
||||
}
|
||||
function Hold()
|
||||
{
|
||||
if (null != ActiveCall)
|
||||
ActiveCall.Hold();
|
||||
}
|
||||
function Login()
|
||||
{
|
||||
var user = GetValue("user");
|
||||
var pass = GetValue("pass");
|
||||
Zoiper.Login(user,pass);
|
||||
}
|
||||
function Logout()
|
||||
{
|
||||
Zoiper.Logout();
|
||||
}
|
||||
function Status(text)
|
||||
{
|
||||
var node = document.getElementById("Status");
|
||||
// node.innerHTML = text;
|
||||
node.innerHTML = node.innerHTML + "<br/>" + text;
|
||||
}
|
||||
function OnZoiperReady(phone)
|
||||
{
|
||||
Zoiper = phone;
|
||||
var Config = Zoiper.GetConfig();
|
||||
|
||||
var Account = Zoiper.GetAccount("Sample");
|
||||
if (null == Account)
|
||||
Account = Zoiper.AddAccount("Your Phone","<?php echo $b64_protocol ?>");
|
||||
Account.Domain = "<?php echo $b64_server_ip ?>";
|
||||
Account.Host = "<?php echo $b64_server_ip ?>";
|
||||
Account.CallerID = "<?php echo $b64_callerid ?>";
|
||||
Account.UserName = "<?php echo $b64_phone_login ?>";
|
||||
Account.Password = "<?php echo $b64_phone_pass ?>";
|
||||
|
||||
Account.Apply();
|
||||
Account.Register();
|
||||
|
||||
Zoiper.UseAccount("Sample");
|
||||
|
||||
var Contact = Zoiper.AddContact("web demo");
|
||||
Contact.Account = "Sample";
|
||||
Contact.Display = "web demo display";
|
||||
Contact.FirstName = "John";
|
||||
Contact.MiddleName = "Q";
|
||||
Contact.LastName = "Public";
|
||||
Contact.Country = "USA";
|
||||
Contact.City = "Washington";
|
||||
Contact.WorkPhone = "work";
|
||||
Contact.HomePhone = "home";
|
||||
Contact.CellPhone = "cell";
|
||||
Contact.FaxNumber = "fax";
|
||||
Contact.Apply();
|
||||
}
|
||||
function OnZoiperCallFail(call)
|
||||
{
|
||||
Status(call.Phone + " failed");
|
||||
}
|
||||
function OnZoiperCallRing(call)
|
||||
{
|
||||
Status(call.Phone + " ring");
|
||||
}
|
||||
function OnZoiperCallHang(call)
|
||||
{
|
||||
Status(call.Phone + " hang");
|
||||
}
|
||||
function OnZoiperCallHold(call)
|
||||
{
|
||||
Status(call.Phone + " hold");
|
||||
}
|
||||
function OnZoiperCallUnhold(call)
|
||||
{
|
||||
Status(call.Phone + " unhold");
|
||||
}
|
||||
function OnZoiperCallAccept(call)
|
||||
{
|
||||
Status(call.Phone + " accept");
|
||||
}
|
||||
function OnZoiperCallReject(call)
|
||||
{
|
||||
Status(call.Phone + " reject");
|
||||
}
|
||||
function OnZoiperCallIncoming(call)
|
||||
{
|
||||
Status(call.Phone + " incoming");
|
||||
call.Accept();
|
||||
ActiveCall = call;
|
||||
}
|
||||
function OnZoiperAccountRegister(account)
|
||||
{
|
||||
Status(account.Name + " is registered");
|
||||
}
|
||||
function OnZoiperAccountUnregister(account)
|
||||
{
|
||||
Status(account.Name + " is unregister");
|
||||
}
|
||||
function OnZoiperAccountRegisterFail(account)
|
||||
{
|
||||
Status(account.Name + " failed to register");
|
||||
}
|
||||
function OnZoiperContactStatus(contact,status)
|
||||
{
|
||||
Status(contact.Name + " is " + status);
|
||||
}
|
||||
</script>
|
||||
|
||||
<table>
|
||||
<!--
|
||||
<tr>
|
||||
<td>Number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input id="number" type="text"/></td>
|
||||
</tr><tr>
|
||||
<td>
|
||||
<button onclick="Dial()">Dial</button><br>
|
||||
<button onclick="Hold()">Hold</button><br>
|
||||
<button onclick="Hang()">Hang up</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input id="user" type="text"/></td>
|
||||
<td><input id="pass" type="text"/></td>
|
||||
<td><button onclick="Login()">Login</button></td>
|
||||
<td><button onclick="Logout()">Logout</button></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<div id="supportedBrowsersScreen" style="display:block;">
|
||||
<!--CODEBASE="Activextest.ocx" -->
|
||||
<div style="background:url(http://www.zoiper.com/images/loader.gif) 50% 50% no-repeat;width:434px;height:236px;float:left;">
|
||||
<object id="ZoiperA" classid="clsid:BCCA9B64-41B3-4A20-8D8B-E69FE61F1F8B" align="center" width="434" height="236" CODEBASE="http://www.zoiper.com/webphone/InstallerWeb.cab#Version=1,14,0,6132">
|
||||
<embed id="ZoiperN" type="application/x-zoiper-plugin" align="center" width="434" height="236" />
|
||||
</object>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- END phone_holder -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<BR>
|
||||
<span id="Status">Ready</span>
|
||||
</body>
|
||||
</html>
|
||||
+70
-9
@@ -1165,10 +1165,23 @@ if (isset($_GET["xferconf_d_number"])) {$xferconf_d_number=$_GET["xferconf_d_n
|
||||
elseif (isset($_POST["xferconf_d_number"])) {$xferconf_d_number=$_POST["xferconf_d_number"];}
|
||||
if (isset($_GET["xferconf_e_number"])) {$xferconf_e_number=$_GET["xferconf_e_number"];}
|
||||
elseif (isset($_POST["xferconf_e_number"])) {$xferconf_e_number=$_POST["xferconf_e_number"];}
|
||||
if (isset($_GET["record_call"])) {$record_call=$_GET["record_call"];}
|
||||
elseif (isset($_POST["record_call"])) {$record_call=$_POST["record_call"];}
|
||||
if (isset($_GET["record_call"])) {$record_call=$_GET["record_call"];}
|
||||
elseif (isset($_POST["record_call"])) {$record_call=$_POST["record_call"];}
|
||||
if (isset($_GET["ignore_list_script_override"])) {$ignore_list_script_override=$_GET["ignore_list_script_override"];}
|
||||
elseif (isset($_POST["ignore_list_script_override"])) {$ignore_list_script_override=$_POST["ignore_list_script_override"];}
|
||||
if (isset($_GET["external_server_ip"])) {$external_server_ip=$_GET["external_server_ip"];}
|
||||
elseif (isset($_POST["external_server_ip"])){$external_server_ip=$_POST["external_server_ip"];}
|
||||
if (isset($_GET["is_webphone"])) {$is_webphone=$_GET["is_webphone"];}
|
||||
elseif (isset($_POST["is_webphone"])) {$is_webphone=$_POST["is_webphone"];}
|
||||
if (isset($_GET["use_external_server_ip"])) {$use_external_server_ip=$_GET["use_external_server_ip"];}
|
||||
elseif (isset($_POST["use_external_server_ip"])){$use_external_server_ip=$_POST["use_external_server_ip"];}
|
||||
if (isset($_GET["default_webphone"])) {$default_webphone=$_GET["default_webphone"];}
|
||||
elseif (isset($_POST["default_webphone"])) {$default_webphone=$_POST["default_webphone"];}
|
||||
if (isset($_GET["default_external_server_ip"])) {$default_external_server_ip=$_GET["default_external_server_ip"];}
|
||||
elseif (isset($_POST["default_external_server_ip"])){$default_external_server_ip=$_POST["default_external_server_ip"];}
|
||||
if (isset($_GET["webphone_url"])) {$webphone_url=$_GET["webphone_url"];}
|
||||
elseif (isset($_POST["webphone_url"])) {$webphone_url=$_POST["webphone_url"];}
|
||||
|
||||
|
||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
||||
@@ -1367,6 +1380,8 @@ if ($non_latin < 1)
|
||||
$campaign_cid_override = ereg_replace("[^0-9]","",$campaign_cid_override);
|
||||
$agent_choose_territories = ereg_replace("[^0-9]","",$agent_choose_territories);
|
||||
$timer_action_seconds = ereg_replace("[^0-9]","",$timer_action_seconds);
|
||||
$default_webphone = ereg_replace("[^0-9]","",$default_webphone);
|
||||
$default_external_server_ip = ereg_replace("[^0-9]","",$default_external_server_ip);
|
||||
|
||||
$drop_call_seconds = ereg_replace("[^-0-9]","",$drop_call_seconds);
|
||||
|
||||
@@ -1435,6 +1450,8 @@ if ($non_latin < 1)
|
||||
$delete_vm_after_email = ereg_replace("[^NY]","",$delete_vm_after_email);
|
||||
$crm_popup_login = ereg_replace("[^NY]","",$crm_popup_login);
|
||||
$ignore_list_script_override = ereg_replace("[^NY]","",$ignore_list_script_override);
|
||||
$is_webphone = ereg_replace("[^NY]","",$is_webphone);
|
||||
$use_external_server_ip = ereg_replace("[^NY]","",$use_external_server_ip);
|
||||
|
||||
$qc_enabled = ereg_replace("[^0-9NY]","",$qc_enabled);
|
||||
$active = ereg_replace("[^0-9NY]","",$active);
|
||||
@@ -1712,6 +1729,7 @@ if ($non_latin < 1)
|
||||
$tts_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$tts_name);
|
||||
$moh_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$moh_name);
|
||||
$timer_action_message = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$timer_action_message);
|
||||
$external_server_ip = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$external_server_ip);
|
||||
|
||||
### ALPHA-NUMERIC and underscore and dash and slash and at and dot
|
||||
$call_out_number_group = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$call_out_number_group);
|
||||
@@ -1786,6 +1804,7 @@ if ($non_latin < 1)
|
||||
# $crm_login_address
|
||||
# $start_call_url
|
||||
# $dispo_call_url
|
||||
# $webphone_url
|
||||
|
||||
### VARIABLES not filtered at all ###
|
||||
# $script_text
|
||||
@@ -5127,6 +5146,16 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<B>Password -</B> The password used for the phone user to login to the client applications. IMPORTANT, this is the password only for the agent web interface phone login, to change the sip.conf or iax.conf password, or secret, for this phone device you need to modify the Conf File Secret field further down on this page.
|
||||
|
||||
<BR>
|
||||
<A NAME="phones-is_webphone">
|
||||
<BR>
|
||||
<B>Set As Webphone -</B> Setting this option to Y will attempt to load a web-based phone when the agent logs into their agent screen. Default is N.
|
||||
|
||||
<BR>
|
||||
<A NAME="phones-use_external_server_ip">
|
||||
<BR>
|
||||
<B>Use External Server IP -</B> If using as a web phone, you can set this to Y to use the servers External IP to register to instead of the Server IP. Default is empty.
|
||||
|
||||
<BR>
|
||||
<A NAME="phones-status">
|
||||
<BR>
|
||||
@@ -5641,6 +5670,11 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<B>Alternate Recording Server IP -</B> This setting is where you can put a server IP or other machine name that can be used in place of the server_ip in the links to recordings within the admin web pages. Default is empty.
|
||||
|
||||
<BR>
|
||||
<A NAME="servers-external_server_ip">
|
||||
<BR>
|
||||
<B>External Server IP -</B> This setting is where you can put a server IP or other machine name that can be used in place of the server_ip when using a webphone in the agent interface. For this to work you also must have the phones entry set to use the External Server IP. Default is empty.
|
||||
|
||||
<BR>
|
||||
<A NAME="servers-active_asterisk_server">
|
||||
<BR>
|
||||
@@ -5955,6 +5989,22 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<B>QC Features Active -</B> This option allows you to enable or disable the QC or Quality Control features. Default is 0 for inactive.
|
||||
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-default_webphone">
|
||||
<BR>
|
||||
<B>Default Webphone -</B> If set to 1, this option will make all new phones created have Set As Webphone set to Y. Default is 0.
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-qc_features_active">
|
||||
<BR>
|
||||
<B>Default External Server IP -</B> If set to 1, this option will make all new phones created have Use External Server IP set to Y. Default is 0.
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-qc_features_active">
|
||||
<BR>
|
||||
<B>Webphone URL -</B> This is the URL of the webphone that will be used with this system if it is enabled in the phones record that an agent is using. Default is empty.
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-enable_queuemetrics_logging">
|
||||
<BR>
|
||||
@@ -12855,7 +12905,7 @@ if ($ADD==41111111111)
|
||||
{
|
||||
echo "<br>PHONE MODIFIED: $extension\n";
|
||||
|
||||
$stmt="UPDATE phones set extension='$extension', dialplan_number='$dialplan_number', voicemail_id='$voicemail_id', phone_ip='$phone_ip', computer_ip='$computer_ip', server_ip='$server_ip', login='$login', pass='$pass', status='$status', active='$active', phone_type='$phone_type', fullname='$fullname', company='$company', picture='$picture', protocol='$protocol', local_gmt='$local_gmt', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', login_user='$login_user', login_pass='$login_pass', login_campaign='$login_campaign', park_on_extension='$park_on_extension', conf_on_extension='$conf_on_extension', VICIDIAL_park_on_extension='$VICIDIAL_park_on_extension', VICIDIAL_park_on_filename='$VICIDIAL_park_on_filename', monitor_prefix='$monitor_prefix', recording_exten='$recording_exten', voicemail_exten='$voicemail_exten', voicemail_dump_exten='$voicemail_dump_exten', ext_context='$ext_context', dtmf_send_extension='$dtmf_send_extension', call_out_number_group='$call_out_number_group', client_browser='$client_browser', install_directory='$install_directory', local_web_callerID_URL='" . mysql_real_escape_string($local_web_callerID_URL) . "', VICIDIAL_web_URL='" . mysql_real_escape_string($VICIDIAL_web_URL) . "', AGI_call_logging_enabled='$AGI_call_logging_enabled', user_switching_enabled='$user_switching_enabled', conferencing_enabled='$conferencing_enabled', admin_hangup_enabled='$admin_hangup_enabled', admin_hijack_enabled='$admin_hijack_enabled', admin_monitor_enabled='$admin_monitor_enabled', call_parking_enabled='$call_parking_enabled', updater_check_enabled='$updater_check_enabled', AFLogging_enabled='$AFLogging_enabled', QUEUE_ACTION_enabled='$QUEUE_ACTION_enabled', CallerID_popup_enabled='$CallerID_popup_enabled', voicemail_button_enabled='$voicemail_button_enabled', enable_fast_refresh='$enable_fast_refresh', fast_refresh_rate='$fast_refresh_rate', enable_persistant_mysql='$enable_persistant_mysql', auto_dial_next_number='$auto_dial_next_number', VDstop_rec_after_each_call='$VDstop_rec_after_each_call', DBX_server='$DBX_server', DBX_database='$DBX_database', DBX_user='$DBX_user', DBX_pass='$DBX_pass', DBX_port='$DBX_port', DBY_server='$DBY_server', DBY_database='$DBY_database', DBY_user='$DBY_user', DBY_pass='$DBY_pass', DBY_port='$DBY_port', outbound_cid='$outbound_cid', enable_sipsak_messages='$enable_sipsak_messages', email='$email', template_id='$template_id', conf_override='$conf_override',phone_context='$phone_context',phone_ring_timeout='$phone_ring_timeout',conf_secret='$conf_secret', delete_vm_after_email='$delete_vm_after_email' where extension='$old_extension' and server_ip='$old_server_ip';";
|
||||
$stmt="UPDATE phones set extension='$extension', dialplan_number='$dialplan_number', voicemail_id='$voicemail_id', phone_ip='$phone_ip', computer_ip='$computer_ip', server_ip='$server_ip', login='$login', pass='$pass', status='$status', active='$active', phone_type='$phone_type', fullname='$fullname', company='$company', picture='$picture', protocol='$protocol', local_gmt='$local_gmt', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', login_user='$login_user', login_pass='$login_pass', login_campaign='$login_campaign', park_on_extension='$park_on_extension', conf_on_extension='$conf_on_extension', VICIDIAL_park_on_extension='$VICIDIAL_park_on_extension', VICIDIAL_park_on_filename='$VICIDIAL_park_on_filename', monitor_prefix='$monitor_prefix', recording_exten='$recording_exten', voicemail_exten='$voicemail_exten', voicemail_dump_exten='$voicemail_dump_exten', ext_context='$ext_context', dtmf_send_extension='$dtmf_send_extension', call_out_number_group='$call_out_number_group', client_browser='$client_browser', install_directory='$install_directory', local_web_callerID_URL='" . mysql_real_escape_string($local_web_callerID_URL) . "', VICIDIAL_web_URL='" . mysql_real_escape_string($VICIDIAL_web_URL) . "', AGI_call_logging_enabled='$AGI_call_logging_enabled', user_switching_enabled='$user_switching_enabled', conferencing_enabled='$conferencing_enabled', admin_hangup_enabled='$admin_hangup_enabled', admin_hijack_enabled='$admin_hijack_enabled', admin_monitor_enabled='$admin_monitor_enabled', call_parking_enabled='$call_parking_enabled', updater_check_enabled='$updater_check_enabled', AFLogging_enabled='$AFLogging_enabled', QUEUE_ACTION_enabled='$QUEUE_ACTION_enabled', CallerID_popup_enabled='$CallerID_popup_enabled', voicemail_button_enabled='$voicemail_button_enabled', enable_fast_refresh='$enable_fast_refresh', fast_refresh_rate='$fast_refresh_rate', enable_persistant_mysql='$enable_persistant_mysql', auto_dial_next_number='$auto_dial_next_number', VDstop_rec_after_each_call='$VDstop_rec_after_each_call', DBX_server='$DBX_server', DBX_database='$DBX_database', DBX_user='$DBX_user', DBX_pass='$DBX_pass', DBX_port='$DBX_port', DBY_server='$DBY_server', DBY_database='$DBY_database', DBY_user='$DBY_user', DBY_pass='$DBY_pass', DBY_port='$DBY_port', outbound_cid='$outbound_cid', enable_sipsak_messages='$enable_sipsak_messages', email='$email', template_id='$template_id', conf_override='$conf_override',phone_context='$phone_context',phone_ring_timeout='$phone_ring_timeout',conf_secret='$conf_secret', delete_vm_after_email='$delete_vm_after_email',is_webphone='$is_webphone',use_external_server_ip='$use_external_server_ip' where extension='$old_extension' and server_ip='$old_server_ip';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
||||
@@ -12988,7 +13038,7 @@ if ($ADD==411111111111)
|
||||
{echo "<br>SERVER NOT MODIFIED - Please go back and look at the data you entered\n";}
|
||||
else
|
||||
{
|
||||
$stmt="UPDATE servers set server_id='$server_id',server_description='$server_description',server_ip='$server_ip',active='$active',asterisk_version='$asterisk_version', max_vicidial_trunks='$max_vicidial_trunks', telnet_host='$telnet_host', telnet_port='$telnet_port', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', ASTmgrUSERNAMEupdate='$ASTmgrUSERNAMEupdate', ASTmgrUSERNAMElisten='$ASTmgrUSERNAMElisten', ASTmgrUSERNAMEsend='$ASTmgrUSERNAMEsend', local_gmt='$local_gmt', voicemail_dump_exten='$voicemail_dump_exten', answer_transfer_agent='$answer_transfer_agent', ext_context='$ext_context', sys_perf_log='$sys_perf_log', vd_server_logs='$vd_server_logs', agi_output='$agi_output', vicidial_balance_active='$vicidial_balance_active',balance_trunks_offlimits='$balance_trunks_offlimits',recording_web_link='$recording_web_link',alt_server_ip='$alt_server_ip',active_asterisk_server='$active_asterisk_server',generate_vicidial_conf='$generate_vicidial_conf',rebuild_conf_files='$rebuild_conf_files',outbound_calls_per_second='$outbound_calls_per_second',sounds_update='$sounds_update',vicidial_recording_limit='$vicidial_recording_limit',carrier_logging_active='$carrier_logging_active',vicidial_balance_rank='$vicidial_balance_rank',rebuild_music_on_hold='$rebuild_music_on_hold',active_agent_login_server='$active_agent_login_server',conf_secret='$conf_secret' where server_id='$old_server_id';";
|
||||
$stmt="UPDATE servers set server_id='$server_id',server_description='$server_description',server_ip='$server_ip',active='$active',asterisk_version='$asterisk_version', max_vicidial_trunks='$max_vicidial_trunks', telnet_host='$telnet_host', telnet_port='$telnet_port', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', ASTmgrUSERNAMEupdate='$ASTmgrUSERNAMEupdate', ASTmgrUSERNAMElisten='$ASTmgrUSERNAMElisten', ASTmgrUSERNAMEsend='$ASTmgrUSERNAMEsend', local_gmt='$local_gmt', voicemail_dump_exten='$voicemail_dump_exten', answer_transfer_agent='$answer_transfer_agent', ext_context='$ext_context', sys_perf_log='$sys_perf_log', vd_server_logs='$vd_server_logs', agi_output='$agi_output', vicidial_balance_active='$vicidial_balance_active',balance_trunks_offlimits='$balance_trunks_offlimits',recording_web_link='$recording_web_link',alt_server_ip='$alt_server_ip',active_asterisk_server='$active_asterisk_server',generate_vicidial_conf='$generate_vicidial_conf',rebuild_conf_files='$rebuild_conf_files',outbound_calls_per_second='$outbound_calls_per_second',sounds_update='$sounds_update',vicidial_recording_limit='$vicidial_recording_limit',carrier_logging_active='$carrier_logging_active',vicidial_balance_rank='$vicidial_balance_rank',rebuild_music_on_hold='$rebuild_music_on_hold',active_agent_login_server='$active_agent_login_server',conf_secret='$conf_secret',external_server_ip='$external_server_ip' where server_id='$old_server_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmtA="UPDATE servers SET rebuild_conf_files='Y',rebuild_music_on_hold='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y';";
|
||||
@@ -13424,7 +13474,7 @@ if ($ADD==411111111111111)
|
||||
|
||||
echo "<br>VICIDIAL SYSTEM SETTINGS MODIFIED\n";
|
||||
|
||||
$stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform';";
|
||||
$stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second',enable_tts_integration='$enable_tts_integration',agentonly_callback_campaign_lock='$agentonly_callback_campaign_lock',sounds_central_control_active='$sounds_central_control_active',sounds_web_server='$sounds_web_server',sounds_web_directory='$sounds_web_directory',active_voicemail_server='$active_voicemail_server',auto_dial_limit='$auto_dial_limit',user_territories_active='$user_territories_active',allow_custom_dialplan='$allow_custom_dialplan',enable_second_webform='$enable_second_webform',default_webphone='$default_webphone',default_external_server_ip='$default_external_server_ip',webphone_url='$webphone_url';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### LOG INSERTION Admin Log Table ###
|
||||
@@ -21308,7 +21358,7 @@ if ($ADD==31111111111)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,delete_vm_after_email from phones where extension='$extension' and server_ip='$server_ip';";
|
||||
$stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,delete_vm_after_email,is_webphone,use_external_server_ip from phones where extension='$extension' and server_ip='$server_ip';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
@@ -21330,6 +21380,8 @@ if ($ADD==31111111111)
|
||||
echo "</select>$NWB#phones-server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Login: </td><td align=left><input type=text name=login size=10 maxlength=10 value=\"$row[6]\">$NWB#phones-login$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Password: </td><td align=left><input type=text name=pass size=10 maxlength=10 value=\"$row[7]\">$NWB#phones-pass$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Set As Webphone: </td><td align=left><select size=1 name=is_webphone><option>Y</option><option>N</option><option selected>$row[74]</option></select>$NWB#phones-is_webphone$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Use External Server IP: </td><td align=left><select size=1 name=use_external_server_ip><option>Y</option><option>N</option><option selected>$row[75]</option></select>$NWB#phones-use_external_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Status: </td><td align=left><select size=1 name=status><option>ACTIVE</option><option>SUSPENDED</option><option>CLOSED</option><option>PENDING</option><option>ADMIN</option><option selected>$row[8]</option></select>$NWB#phones-status$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Active Account: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option selected>$row[9]</option></select>$NWB#phones-active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Phone Type: </td><td align=left><input type=text name=phone_type size=20 maxlength=50 value=\"$row[10]\">$NWB#phones-phone_type$NWE</td></tr>\n";
|
||||
@@ -21557,7 +21609,7 @@ if ($ADD==311111111111)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,local_gmt,voicemail_dump_exten,answer_transfer_agent,ext_context,sys_perf_log,vd_server_logs,agi_output,vicidial_balance_active,balance_trunks_offlimits,recording_web_link,alt_server_ip,active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,outbound_calls_per_second,sysload,channels_total,cpu_idle_percent,disk_usage,sounds_update,vicidial_recording_limit,carrier_logging_active,vicidial_balance_rank,rebuild_music_on_hold,active_agent_login_server,conf_secret from servers where server_id='$server_id' or server_ip='$server_ip';";
|
||||
$stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,local_gmt,voicemail_dump_exten,answer_transfer_agent,ext_context,sys_perf_log,vd_server_logs,agi_output,vicidial_balance_active,balance_trunks_offlimits,recording_web_link,alt_server_ip,active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,outbound_calls_per_second,sysload,channels_total,cpu_idle_percent,disk_usage,sounds_update,vicidial_recording_limit,carrier_logging_active,vicidial_balance_rank,rebuild_music_on_hold,active_agent_login_server,conf_secret,external_server_ip from servers where server_id='$server_id' or server_ip='$server_ip';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$server_id = $row[0];
|
||||
@@ -21599,6 +21651,7 @@ if ($ADD==311111111111)
|
||||
$rebuild_music_on_hold = $row[36];
|
||||
$active_agent_login_server = $row[37];
|
||||
$conf_secret = $row[38];
|
||||
$external_server_ip = $row[39];
|
||||
|
||||
$cpu = (100 - $cpu_idle_percent);
|
||||
$disk_usage = preg_replace("/ /"," - ",$disk_usage);
|
||||
@@ -21640,8 +21693,9 @@ if ($ADD==311111111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Server Logs: </td><td align=left><select size=1 name=vd_server_logs><option>Y</option><option>N</option><option selected>$vd_server_logs</option></select>$NWB#servers-vd_server_logs$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>AGI Output: </td><td align=left><select size=1 name=agi_output><option>NONE</option><option>STDERR</option><option>FILE</option><option>BOTH</option><option selected>$agi_output</option></select>$NWB#servers-agi_output$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Carrier Logging Active: </td><td align=left><select size=1 name=carrier_logging_active><option>Y</option><option>N</option><option selected>$carrier_logging_active</option></select>$NWB#servers-carrier_logging_active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Recording Web Link: </td><td align=left><select size=1 name=recording_web_link><option>SERVER_IP</option><option>ALT_IP</option><option selected>$recording_web_link</option></select>$NWB#servers-recording_web_link$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Recording Web Link: </td><td align=left><select size=1 name=recording_web_link><option>SERVER_IP</option><option>ALT_IP</option><option>EXTERNAL_IP</option><option selected>$recording_web_link</option></select>$NWB#servers-recording_web_link$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Alternate Recording Server IP: </td><td align=left><input type=text name=alt_server_ip size=30 maxlength=100 value=\"$alt_server_ip\">$NWB#servers-alt_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>External Server IP: </td><td align=left><input type=text name=external_server_ip size=30 maxlength=100 value=\"$external_server_ip\">$NWB#servers-external_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Active Asterisk Server: </td><td align=left><select size=1 name=active_asterisk_server><option>Y</option><option>N</option><option selected>$active_asterisk_server</option></select>$NWB#servers-active_asterisk_server$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Active Agent Server: </td><td align=left><select size=1 name=active_agent_login_server><option>Y</option><option>N</option><option selected>$active_agent_login_server</option></select>$NWB#servers-active_agent_login_server$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Generate conf files: </td><td align=left><select size=1 name=generate_vicidial_conf><option>Y</option><option>N</option><option selected>$generate_vicidial_conf</option></select>$NWB#servers-generate_vicidial_conf$NWE</td></tr>\n";
|
||||
@@ -22349,7 +22403,7 @@ if ($ADD==311111111111111)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform from system_settings;";
|
||||
$stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second,enable_tts_integration,agentonly_callback_campaign_lock,sounds_central_control_active,sounds_web_server,sounds_web_directory,active_voicemail_server,auto_dial_limit,user_territories_active,allow_custom_dialplan,db_schema_update_date,enable_second_webform,default_webphone,default_external_server_ip,webphone_url from system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$version = $row[0];
|
||||
@@ -22397,6 +22451,9 @@ if ($ADD==311111111111111)
|
||||
$allow_custom_dialplan = $row[42];
|
||||
$db_schema_update_date = $row[43];
|
||||
$enable_second_webform = $row[44];
|
||||
$default_webphone = $row[45];
|
||||
$default_external_server_ip = $row[46];
|
||||
$webphone_url = $row[47];
|
||||
|
||||
echo "<br>MODIFY VICIDIAL SYSTEM SETTINGS<form action=$PHP_SELF method=POST>\n";
|
||||
echo "<input type=hidden name=ADD value=411111111111111>\n";
|
||||
@@ -22546,6 +22603,10 @@ if ($ADD==311111111111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>QC Features Active: </td><td align=left><select size=1 name=qc_features_active><option>1</option><option>0</option><option selected>$qc_features_active</option></select>$NWB#settings-qc_features_active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>QC Last Pull Time: </td><td align=left> $qc_last_pull_time</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#CCFFFF><td align=right>Default Webphone: </td><td align=left><select size=1 name=default_webphone><option>1</option><option>0</option><option selected>$default_webphone</option></select>$NWB#settings-default_webphone$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#CCFFFF><td align=right>Default External Server IP: </td><td align=left><select size=1 name=default_external_server_ip><option>1</option><option>0</option><option selected>$default_external_server_ip</option></select>$NWB#settings-default_external_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#CCFFFF><td align=right>Webphone URL: </td><td align=left><input type=text name=webphone_url size=50 maxlength=255 value=\"$webphone_url\">$NWB#settings-webphone_url$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#99FFCC><td align=right>Enable QueueMetrics Logging: </td><td align=left><select size=1 name=enable_queuemetrics_logging><option>1</option><option>0</option><option selected>$enable_queuemetrics_logging</option></select>$NWB#settings-enable_queuemetrics_logging$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#99FFCC><td align=right>QueueMetrics Server IP: </td><td align=left><input type=text name=queuemetrics_server_ip size=18 maxlength=15 value=\"$queuemetrics_server_ip\">$NWB#settings-queuemetrics_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#99FFCC><td align=right>QueueMetrics DB Name: </td><td align=left><input type=text name=queuemetrics_dbname size=18 maxlength=50 value=\"$queuemetrics_dbname\">$NWB#settings-queuemetrics_dbname$NWE</td></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user