klept24 wrote:Do you have any idea of what script that is responsible for generating the logs on /var/log/asterisk/full, because we need to insert it to database for reporting purposes.
Thanks
/etc/asterisk/logger.conf
you can create a new log with any content in it that you like (by category, of course, not down to which events occur)
when we're curious about this, we run a 5 minute script that checks this way:
- Code: Select all
asterisk -rx "sip show registry"
and/or
- Code: Select all
asterisk -rx "sip show peers"
performing this in php and then parsing the resulting array for specific entries is fairly easy. we have a watch script that does this and creates DB entries every 5 minutes just before another script checks to see if everyone who belongs in that table is there (and sends an email if one disappears, and a text message if they aren't back within six minutes, allowing for reboots).