Changed iax secret for servers to be defined in web interface.
***see UPGRADE doc for important changes you need to make*** Fixed AGENTDIRECT no-agent-no-queue bug git-svn-id: svn://192.168.202.10@1266 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -277,6 +277,14 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
|
||||
68. Added secondary FTP audio recording file transfer script to send recordings
|
||||
to a second FTP server after finishing transfer to the primary server.
|
||||
|
||||
69. Added Conf File Secret to Servers section to allow for a custom password
|
||||
on internal ASTloop, ASTblind and server-to-server IAX connections
|
||||
This requires some lines to be removed from the iax.conf file:
|
||||
- remove the register entries for ASTloop and ASTblind
|
||||
- remove the account entries for [ASTloop] and [ASTblind]
|
||||
This requires some lines to be removed from the extensions.conf file:
|
||||
- remove the TRUNKloop and TRUNKblind entries near the top
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@
|
||||
# 91004-0959 - Fix for queue_log consultative transfers
|
||||
# 91105-1258 - Added CallerIDnumber change on Drop when sending call out
|
||||
# 91122-2352 - Added queue_log IVR and DID entry linking
|
||||
# 91125-0921 - Fixed no-agent-no-queue AGENTDIRECT bug
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_inbound.agi';
|
||||
@@ -846,9 +847,12 @@ if ( ($hm < $ct_default_start) || ($hm > $ct_default_stop) )
|
||||
if ($no_agent_no_queue =~ /Y|NO_PAUSED/)
|
||||
{
|
||||
$NPsql='';
|
||||
$ADsql='';
|
||||
if ($no_agent_no_queue =~ /NO_PAUSED/)
|
||||
{$NPsql = "and status NOT IN('PAUSED')";}
|
||||
$stmtA = "SELECT count(*) FROM vicidial_live_agents where closer_campaigns LIKE \"% $channel_group %\" $NPsql;";
|
||||
if ( ($channel_group =~ /AGENTDIRECT/i) && (length($agent_only) > 1) )
|
||||
{$ADsql = "and user='$agent_only'";}
|
||||
$stmtA = "SELECT count(*) FROM vicidial_live_agents where closer_campaigns LIKE \"% $channel_group %\" $NPsql $ADsql;";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
$sthArows=$sthA->rows;
|
||||
|
||||
+48
-10
@@ -45,6 +45,7 @@
|
||||
# 91028-1023 - Added clearing of daily-reset tables at the timeclock reset time
|
||||
# 91031-1258 - Added carrier description comments
|
||||
# 91109-1205 - Added requirecalltoken=no as IAX setting for newer Asterisk 1.4 versions
|
||||
# 91125-0709 - Added conf_secret to servers conf
|
||||
#
|
||||
|
||||
$DB=0; # Debug flag
|
||||
@@ -767,7 +768,7 @@ else
|
||||
}
|
||||
|
||||
##### Get the settings for this server's server_ip #####
|
||||
$stmtA = "SELECT active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,asterisk_version,sounds_update FROM servers where server_ip='$server_ip';";
|
||||
$stmtA = "SELECT active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,asterisk_version,sounds_update,conf_secret FROM servers where server_ip='$server_ip';";
|
||||
# print "$stmtA\n";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
@@ -780,6 +781,7 @@ if ($sthArows > 0)
|
||||
$rebuild_conf_files = $aryA[2];
|
||||
$asterisk_version = $aryA[3];
|
||||
$sounds_update = $aryA[4];
|
||||
$self_conf_secret = $aryA[5];
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
@@ -802,10 +804,45 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$VARremDIALstr = "$a$S$b$S$c$S$d";
|
||||
}
|
||||
|
||||
$ext .= "TRUNKloop = IAX2/ASTloop:$self_conf_secret\@127.0.0.1:40569\n";
|
||||
$ext .= "TRUNKblind = IAX2/ASTblind:$self_conf_secret\@127.0.0.1:41569\n";
|
||||
|
||||
$iax .= "register => ASTloop:$self_conf_secret\@127.0.0.1:40569\n";
|
||||
$iax .= "register => ASTblind:$self_conf_secret\@127.0.0.1:41569\n";
|
||||
|
||||
$Lext = "\n";
|
||||
$Lext .= "; Local Server: $server_ip\n";
|
||||
$Lext .= "exten => _$VARremDIALstr*.,1,Goto(default,\${EXTEN:16},1)\n";
|
||||
|
||||
$Liax .= "\n";
|
||||
$Liax .= "[ASTloop]\n";
|
||||
$Liax .= "accountcode=ASTloop\n";
|
||||
$Liax .= "secret=$self_conf_secret\n";
|
||||
$Liax .= "type=friend\n";
|
||||
$Liax .= "requirecalltoken=no\n";
|
||||
$Liax .= "context=default\n";
|
||||
$Liax .= "auth=plaintext\n";
|
||||
$Liax .= "host=dynamic\n";
|
||||
$Liax .= "permit=0.0.0.0/0.0.0.0\n";
|
||||
$Liax .= "disallow=all\n";
|
||||
$Liax .= "allow=ulaw\n";
|
||||
$Liax .= "qualify=yes\n";
|
||||
|
||||
$Liax .= "\n";
|
||||
$Liax .= "[ASTblind]\n";
|
||||
$Liax .= "accountcode=ASTblind\n";
|
||||
$Liax .= "secret=$self_conf_secret\n";
|
||||
$Liax .= "type=friend\n";
|
||||
$Liax .= "requirecalltoken=no\n";
|
||||
$Liax .= "context=default\n";
|
||||
$Liax .= "auth=plaintext\n";
|
||||
$Liax .= "host=dynamic\n";
|
||||
$Liax .= "permit=0.0.0.0/0.0.0.0\n";
|
||||
$Liax .= "disallow=all\n";
|
||||
$Liax .= "allow=ulaw\n";
|
||||
$Liax .= "qualify=yes\n";
|
||||
|
||||
|
||||
##### Get the server_id for this server's server_ip #####
|
||||
$stmtA = "SELECT server_id,vicidial_recording_limit FROM servers where server_ip='$server_ip';";
|
||||
# print "$stmtA\n";
|
||||
@@ -823,7 +860,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
|
||||
|
||||
##### BEGIN Generate the server_ips and server_ids of all VICIDIAL servers on the network for load balancing #####
|
||||
$stmtA = "SELECT server_ip,server_id FROM servers where server_ip!='$server_ip' and active_asterisk_server='Y' order by server_ip;";
|
||||
$stmtA = "SELECT server_ip,server_id,conf_secret FROM servers where server_ip!='$server_ip' and active_asterisk_server='Y' order by server_ip;";
|
||||
# print "$stmtA\n";
|
||||
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
|
||||
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
|
||||
@@ -832,20 +869,21 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
while ($sthArows > $i)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$server_ip[$i] = "$aryA[0]";
|
||||
$server_id[$i] = "$aryA[1]";
|
||||
$server_ip[$i] = $aryA[0];
|
||||
$server_id[$i] = $aryA[1];
|
||||
$conf_secret[$i] = $aryA[2];
|
||||
|
||||
if( $server_ip[$i] =~ m/(\S+)\.(\S+)\.(\S+)\.(\S+)/ )
|
||||
{
|
||||
$a = leading_zero($1);
|
||||
$b = leading_zero($2);
|
||||
$c = leading_zero($3);
|
||||
$a = leading_zero($1);
|
||||
$b = leading_zero($2);
|
||||
$c = leading_zero($3);
|
||||
$d = leading_zero($4);
|
||||
$VARremDIALstr = "$a$S$b$S$c$S$d";
|
||||
}
|
||||
$ext .= "TRUNK$server_id[$i] = IAX2/$server_id:test\@$server_ip[$i]:4569\n";
|
||||
$ext .= "TRUNK$server_id[$i] = IAX2/$server_id:$conf_secret[$i]\@$server_ip[$i]:4569\n";
|
||||
|
||||
$iax .= "register => $server_id:test\@$server_ip[$i]:4569\n";
|
||||
$iax .= "register => $server_id:$conf_secret[$i]\@$server_ip[$i]:4569\n";
|
||||
|
||||
$Lext .= "; Remote Server VDAD extens: $server_id[$i] $server_ip[$i]\n";
|
||||
$Lext .= "exten => _$VARremDIALstr*.,1,Dial(\${TRUNK$server_id[$i]}/\${EXTEN:16},55,oT)\n";
|
||||
@@ -853,7 +891,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
|
||||
$Liax .= "\n";
|
||||
$Liax .= "[$server_id[$i]]\n";
|
||||
$Liax .= "accountcode=IAX$server_id[$i]\n";
|
||||
$Liax .= "secret=test\n";
|
||||
$Liax .= "secret=$self_conf_secret\n";
|
||||
$Liax .= "type=friend\n";
|
||||
$Liax .= "requirecalltoken=no\n";
|
||||
$Liax .= "context=default\n";
|
||||
|
||||
@@ -638,12 +638,11 @@ You may want to reduce the exposure of some of the elements of VICIDIAL. Here ar
|
||||
ln -s /dev/null /usr/local/apache2/htdocs/vicidial/project_auth_entries.txt
|
||||
ln -s /dev/null /usr/local/apache2/htdocs/agc/vicidial_auth_entries.txt
|
||||
ln -s /dev/null /usr/local/apache2/htdocs/agc/astguiclient_auth_entries.txt
|
||||
ln -s /dev/null /usr/local/apache2/htdocs/vicidial/admin_changes_log.txt
|
||||
|
||||
- Change the WWW writable in the admin.php system settings to "0"
|
||||
- Change the default admin user "6666" or it's password from the default
|
||||
- Change the Default secret(password) for the default SIP and IAX accounts that are set up with astGUIclient
|
||||
- Change the default password for the Asterisk manager connection in manager.conf then change it in the server modification screen
|
||||
- Change the Default secret(password) for the default SIP and IAX accounts that are set up (admin.php -> Admin, Phones and Servers as "Conf File Secret")
|
||||
- Change the default password for the Asterisk manager connection in manager.conf then change it in the Server modification screen
|
||||
- Change the default password for the mysql cron user in mysql and change it to match in /etc/astguiclient.conf on each server
|
||||
- Possibly use static IP addresses for the IAX/SIP conf account entries
|
||||
- Change the default port for Apache in httpd.conf from 80 to something else
|
||||
|
||||
@@ -10,8 +10,6 @@ TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
|
||||
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
|
||||
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
|
||||
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
|
||||
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
|
||||
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing
|
||||
|
||||
#include extensions-vicidial.conf
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
|
||||
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
|
||||
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
|
||||
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
|
||||
TRUNKloop = IAX2/ASTloop:test@127.0.0.1:40569 ; used for blind monitoring
|
||||
TRUNKblind = IAX2/ASTblind:test@127.0.0.1:41569 ; used for testing
|
||||
|
||||
#include extensions-vicidial.conf
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ tos=lowdelay
|
||||
#include iax-vicidial.conf
|
||||
|
||||
;register => 1112223333:PASSWORD@iax.binfone.com
|
||||
register => ASTloop:test@127.0.0.1:40569
|
||||
register => ASTblind:test@127.0.0.1:41569
|
||||
;ASTloop/ASTblind removed and now included in iax-vicidial.conf
|
||||
|
||||
|
||||
[vicihelp]
|
||||
host=67.134.219.20 ;voip.vicidial-group.com
|
||||
@@ -24,29 +24,6 @@ allow=ulaw
|
||||
permit=67.134.219.20/255.255.255.255
|
||||
insecure=very
|
||||
|
||||
[ASTloop]
|
||||
type=friend
|
||||
accountcode=ASTloop
|
||||
context=default
|
||||
auth=plaintext
|
||||
host=dynamic
|
||||
permit=0.0.0.0/0.0.0.0
|
||||
secret=test
|
||||
disallow=all
|
||||
allow=ulaw
|
||||
qualify=yes
|
||||
|
||||
[ASTblind]
|
||||
type=friend
|
||||
accountcode=ASTblind
|
||||
context=default
|
||||
auth=plaintext
|
||||
host=dynamic
|
||||
permit=0.0.0.0/0.0.0.0
|
||||
secret=test
|
||||
disallow=all
|
||||
allow=ulaw
|
||||
qualify=yes
|
||||
|
||||
[1112223333]
|
||||
auth=md5
|
||||
|
||||
@@ -42,8 +42,8 @@ allowfwdownload=no
|
||||
#include iax-vicidial.conf
|
||||
|
||||
;register => 1112223333:PASSWORD@iax.binfone.com
|
||||
register => ASTloop:test@127.0.0.1:40569
|
||||
register => ASTblind:test@127.0.0.1:41569
|
||||
;ASTloop/ASTblind removed and now included in iax-vicidial.conf
|
||||
|
||||
|
||||
[vicihelp]
|
||||
host=67.134.219.20 ;voip.vicidial-group.com
|
||||
@@ -56,32 +56,6 @@ allow=ulaw
|
||||
permit=67.134.219.20/255.255.255.255
|
||||
insecure=very
|
||||
|
||||
[ASTloop]
|
||||
type=friend
|
||||
accountcode=ASTloop
|
||||
requirecalltoken=no
|
||||
context=default
|
||||
auth=plaintext
|
||||
host=dynamic
|
||||
permit=0.0.0.0/0.0.0.0
|
||||
secret=test
|
||||
disallow=all
|
||||
allow=ulaw
|
||||
qualify=yes
|
||||
|
||||
[ASTblind]
|
||||
type=friend
|
||||
accountcode=ASTblind
|
||||
requirecalltoken=no
|
||||
context=default
|
||||
auth=plaintext
|
||||
host=dynamic
|
||||
permit=0.0.0.0/0.0.0.0
|
||||
secret=test
|
||||
disallow=all
|
||||
allow=ulaw
|
||||
qualify=yes
|
||||
|
||||
[1112223333]
|
||||
auth=md5
|
||||
type=friend
|
||||
|
||||
@@ -114,7 +114,8 @@ vicidial_recording_limit MEDIUMINT(8) default '60',
|
||||
carrier_logging_active ENUM('Y','N') default 'N',
|
||||
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'
|
||||
active_agent_login_server ENUM('Y','N') default 'Y',
|
||||
conf_secret VARCHAR(20) default 'test'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX server_id on servers (server_id);
|
||||
@@ -1956,7 +1957,7 @@ CREATE INDEX phone_number on vicidial_closer_log (phone_number);
|
||||
CREATE INDEX date_user on vicidial_closer_log (call_date,user);
|
||||
CREATE INDEX comment_a on live_inbound_log (comment_a);
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1181',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1182',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
@@ -613,3 +613,7 @@ ALTER TABLE vicidial_live_agents ADD outbound_autodial ENUM('Y','N') default 'N'
|
||||
ALTER TABLE vicidial_live_agents ADD manager_ingroup_set ENUM('Y','N') default 'N';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1181',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE servers ADD conf_secret VARCHAR(20) default 'test';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1182',db_schema_update_date=NOW();
|
||||
|
||||
@@ -345,6 +345,7 @@ If you have the active DNC option set to AREACODE then you can also use area cod
|
||||
Carrier Description||
|
||||
This is put in the comments of the asterisk conf files above the dialplan and account entries. Maximum 255 characters||
|
||||
CAMPAIGNS ALLOWING THIS IN-GROUP||
|
||||
This is the secret, or password, for the server in the iax auto-generated conf file for this server on other servers. Limit is 20 characters alphanumeric dash and underscore accepted. Default is test||
|
||||
|
||||
|
||||
add-file: user_territories.php
|
||||
|
||||
+12
-4
@@ -1988,11 +1988,12 @@ else
|
||||
# 91026-1050 - Added AREACODE DNC option for campaigns
|
||||
# 91031-1232 - Added carrier_description field, campaigns links from in-group screen, server links on reports page, agent ranks listing active only
|
||||
# 91121-0334 - Limited list called count display to 100+
|
||||
# 91125-0628 - Added conf_secret for servers
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.2.0-223';
|
||||
$build = '91121-0334';
|
||||
$admin_version = '2.2.0-224';
|
||||
$build = '91125-0628';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -5415,6 +5416,11 @@ if ($ADD==99999)
|
||||
<BR>
|
||||
<B>Manager Send User -</B> The username or login used to connect to the Asterisk server manager optimized for scripts that only send Actions to the manager. Default is 'sendcron' and assumes the same secret as the generic user.
|
||||
|
||||
<BR>
|
||||
<A NAME="servers-conf_secret">
|
||||
<BR>
|
||||
<B>Conf File Secret -</B> This is the secret, or password, for the server in the iax auto-generated conf file for this server on other servers. Limit is 20 characters alphanumeric dash and underscore accepted. Default is test.
|
||||
|
||||
<BR>
|
||||
<A NAME="servers-local_gmt">
|
||||
<BR>
|
||||
@@ -12685,7 +12691,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' 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' 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';";
|
||||
@@ -20914,7 +20920,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 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 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];
|
||||
@@ -20955,6 +20961,7 @@ if ($ADD==311111111111)
|
||||
$vicidial_balance_rank = $row[35];
|
||||
$rebuild_music_on_hold = $row[36];
|
||||
$active_agent_login_server = $row[37];
|
||||
$conf_secret = $row[38];
|
||||
|
||||
$cpu = (100 - $cpu_idle_percent);
|
||||
$disk_usage = preg_replace("/ /"," - ",$disk_usage);
|
||||
@@ -20987,6 +20994,7 @@ if ($ADD==311111111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Manager Update User: </td><td align=left><input type=text name=ASTmgrUSERNAMEupdate size=20 maxlength=20 value=\"$ASTmgrUSERNAMEupdate\">$NWB#servers-ASTmgrUSERNAMEupdate$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Manager Listen User: </td><td align=left><input type=text name=ASTmgrUSERNAMElisten size=20 maxlength=20 value=\"$ASTmgrUSERNAMElisten\">$NWB#servers-ASTmgrUSERNAMElisten$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Manager Send User: </td><td align=left><input type=text name=ASTmgrUSERNAMEsend size=20 maxlength=20 value=\"$ASTmgrUSERNAMEsend\">$NWB#servers-ASTmgrUSERNAMEsend$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Conf File Secret: </td><td align=left><input type=text name=conf_secret size=20 maxlength=20 value=\"$conf_secret\">$NWB#servers-conf_secret$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Local GMT: </td><td align=left><select size=1 name=local_gmt><option>12.75</option><option>12.00</option><option>11.00</option><option>10.00</option><option>9.50</option><option>9.00</option><option>8.00</option><option>7.00</option><option>6.50</option><option>6.00</option><option>5.75</option><option>5.50</option><option>5.00</option><option>4.50</option><option>4.00</option><option>3.50</option><option>3.00</option><option>2.00</option><option>1.00</option><option>0.00</option><option>-1.00</option><option>-2.00</option><option>-3.00</option><option>-3.50</option><option>-4.00</option><option>-5.00</option><option>-6.00</option><option>-7.00</option><option>-8.00</option><option>-9.00</option><option>-10.00</option><option>-11.00</option><option>-12.00</option><option selected>$local_gmt</option></select> (Do NOT Adjust for DST)$NWB#servers-local_gmt$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>VMail Dump Exten: </td><td align=left><input type=text name=voicemail_dump_exten size=20 maxlength=20 value=\"$voicemail_dump_exten\">$NWB#servers-voicemail_dump_exten$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>VICIDIAL AD extension: </td><td align=left><input type=text name=answer_transfer_agent size=20 maxlength=20 value=\"$answer_transfer_agent\">$NWB#servers-answer_transfer_agent$NWE</td></tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user