From db19c6d270f7a12661b7516d5f3165b8cfa93fb8 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 30 Nov 2006 15:33:55 +0000 Subject: [PATCH] change default show_channels_12_format to 1 for AST_update.pl script git-svn-id: svn://192.168.202.10@425 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/AST_update.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/bin/AST_update.pl b/agc_2-X/trunk/bin/AST_update.pl index 6ca408cb..4ba114ed 100644 --- a/agc_2-X/trunk/bin/AST_update.pl +++ b/agc_2-X/trunk/bin/AST_update.pl @@ -53,9 +53,10 @@ # 60808-1500 - Fixed another bug in that caused crash with ** in extension # 60814-1523 - SYSLOG and SYSPERF looked up from database, dynamic settings # 60926-1601 - validate proper binutil locations for performance gathering +# 61130-1008 - defaults show_channels_12_format to 1 for non 1.0 version Asterisk # -$build = '60926-1601'; +$build = '61130-1008'; # constants $SYSPERF=0; # system performance logging to MySQL server_performance table every 5 seconds @@ -262,8 +263,9 @@ while ($sthArows > $rec_count) } $sthA->finish(); - if ($AST_ver =~ /^1\.2|^CVS|^SVN/i) {$show_channels_12_format = 1;} - else {$show_channels_12_format = 0;} + if ($AST_ver =~ /^1\.0/i) {$show_channels_12_format = 0;} + else {$show_channels_12_format = 1;} + print STDERR "SHOW CHANNELS format: $show_channels_12_format\n"; ##### LOOK FOR ZAP CLIENTS AS DEFINED IN THE phones TABLE SO THEY ARE NOT MISLABELED AS TRUNKS print STDERR "LOOKING FOR Zap clients assigned to this server:\n";