diff --git a/UPGRADE b/UPGRADE
index 58cf6a2c..842dfd83 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -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
+
diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi
index 755c287b..67520af5 100644
--- a/agi/agi-VDAD_ALL_inbound.agi
+++ b/agi/agi-VDAD_ALL_inbound.agi
@@ -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;
diff --git a/bin/ADMIN_keepalive_ALL.pl b/bin/ADMIN_keepalive_ALL.pl
index 40ba1e81..533e6874 100644
--- a/bin/ADMIN_keepalive_ALL.pl
+++ b/bin/ADMIN_keepalive_ALL.pl
@@ -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";
diff --git a/docs/BASE_INSTALL.txt b/docs/BASE_INSTALL.txt
index 0e33d725..9a04898b 100644
--- a/docs/BASE_INSTALL.txt
+++ b/docs/BASE_INSTALL.txt
@@ -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
diff --git a/docs/conf_examples/extensions.conf.sample b/docs/conf_examples/extensions.conf.sample
index 3807ff8e..30601e03 100644
--- a/docs/conf_examples/extensions.conf.sample
+++ b/docs/conf_examples/extensions.conf.sample
@@ -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
diff --git a/docs/conf_examples/extensions.conf.sample-1.4 b/docs/conf_examples/extensions.conf.sample-1.4
index 3f6633ad..b07aa48e 100644
--- a/docs/conf_examples/extensions.conf.sample-1.4
+++ b/docs/conf_examples/extensions.conf.sample-1.4
@@ -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
diff --git a/docs/conf_examples/iax.conf.sample b/docs/conf_examples/iax.conf.sample
index d734cfb3..89a5fe2c 100644
--- a/docs/conf_examples/iax.conf.sample
+++ b/docs/conf_examples/iax.conf.sample
@@ -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
diff --git a/docs/conf_examples/iax.conf.sample-1.4 b/docs/conf_examples/iax.conf.sample-1.4
index ad4b7dd8..02070fd4 100644
--- a/docs/conf_examples/iax.conf.sample-1.4
+++ b/docs/conf_examples/iax.conf.sample-1.4
@@ -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
diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql
index 5a2c99bc..2d471ff3 100644
--- a/extras/MySQL_AST_CREATE_tables.sql
+++ b/extras/MySQL_AST_CREATE_tables.sql
@@ -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;
diff --git a/extras/upgrade_2.2.0.sql b/extras/upgrade_2.2.0.sql
index 1d21b5cb..50dc5eb8 100644
--- a/extras/upgrade_2.2.0.sql
+++ b/extras/upgrade_2.2.0.sql
@@ -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();
diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
index 69eeafeb..f2039ead 100644
--- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
+++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.2.0.txt
@@ -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
diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php
index 8fed5872..83052491 100644
--- a/www/vicidial/admin.php
+++ b/www/vicidial/admin.php
@@ -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)
Manager Send User - 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.
+
+
+
+ Conf File Secret - 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.
+
@@ -12685,7 +12691,7 @@ if ($ADD==411111111111)
{echo "
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 "
\n";
echo "";
- $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 "| Manager Update User: | $NWB#servers-ASTmgrUSERNAMEupdate$NWE | Manager Listen User: | $NWB#servers-ASTmgrUSERNAMElisten$NWE | Manager Send User: | $NWB#servers-ASTmgrUSERNAMEsend$NWE | Conf File Secret: | $NWB#servers-conf_secret$NWE | Local GMT: | (Do NOT Adjust for DST)$NWB#servers-local_gmt$NWE | VMail Dump Exten: | $NWB#servers-voicemail_dump_exten$NWE | VICIDIAL AD extension: | $NWB#servers-answer_transfer_agent$NWE | |