Hi,
We have installed asterisk with Freepbx, and everything is running fine, but the asterisk messages are not being logged in /var/log, in fact nothing i sbeing written to that file. Calls are logged fine to MySQL. I thought it was maybe because /var/log/asterisk/full was not created, so i created it, gave it 777 permissions, but that did not solve the problem.
I added /etc/logrotate.d/asterisk with the following content
/var/log/asterisk/*_log
/var/log/asterisk/debug
/var/log/asterisk/messages
/var/log/asterisk/full {
weekly
minsize 50M
rotate 3
missingok
compress
delaycompress
notifempty
sharedscripts
postrotate
/usr/sbin/asterisk -rx ‘logger reload’ > /dev/null 2> /dev/null
endscript
}
and restarted asterisk but that did not solve it.
/etc/asterisk/logger.conf has a freepbx warning not to edit the content of that file, and has all lines commented out.
I installed the ‘asterisk logfiles’ module in freepbx hoping that may switch something on, but it didn’t either.
Where do I switch logging on?
Thanks for your help,
Tim
FreePBX 2.9.0.7
asterisk 1.8.8.1
centos 6.2 / 32bit