Changed admin logging to log to a database and display logs in the admin report

Fixed rare auto dialing short bug
added second conf file reload after change first after reboot

git-svn-id: svn://192.168.202.10@1069 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-03-10 03:00:18 +00:00
parent 152948c424
commit e1ba3ffb4a
10 changed files with 1850 additions and 1331 deletions
+27 -1
View File
@@ -2,11 +2,12 @@
#
# start_asterisk_boot.pl version 2.0.5
#
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# CHANGES
#
# 60814-1658 - added option to start without logging through servers table setting
# 90309-0905 - Added deleting of asterisk command files
#
# default path to astguiclient configuration file:
@@ -60,6 +61,31 @@ $dbhA = DBI->connect("DBI:mysql:$VARDB_database:$VARDB_server:$VARDB_port", "$VA
}
$sthA->finish();
if (-e "/root/asterisk_command_reload_iax2")
{
### find the find binary
$findbin = '';
if ( -e ('/bin/find')) {$findbin = '/bin/find';}
else
{
if ( -e ('/sbin/find')) {$findbin = '/sbin/find';}
else
{
if ( -e ('/usr/bin/find')) {$findbin = '/usr/bin/find';}
else
{
if ( -e ('/usr/local/bin/find')) {$findbin = '/usr/local/bin/find';}
else
{
print "Can't find find binary! Exiting...\n";
}
}
}
}
`$findbin /root/ -maxdepth 1 -name "asterisk_command*" -print | xargs rm -f`;
}
if ($SYSLOG)
{
print "\nStarting Asterisk... screen logging on\n";