Applies to VoipNow 4.0.0!
This article describes the logs generated by VoipNow components and provides the methods to configure them.
VoipNow web interface
To see what requests are being performed on the web interface, or if you have errors, check the following logs:
The configuration file is /usr/local/voipnow/admin/conf/voipnow.conf
To change the debug level, check the following lines:
error_log can be
This log is useful in case of web interface issues.
You can find the log file here:
The loglevel in this file is defined by the level set in table hs_audit_zone (default 3, maximum 7)
The Kamailio log is useful in case you have problems with calls, registration or any other call-related issue, except for audio issues.
You can find the log here:
The configuration file is in /etc/kamailio/kamailio.cfg
debug can have values from -1 to 9.
You can also enable various facilities to add extra information to the logs. For example, facility_sipmsg will include the SIP packets in the log.
All changes here require a Kamailio restart.
For example, the debug level can be set to level 3 example with the following command:
The change immediately becomes active and no restart is required.
The Asterisk log is useful in case of call-related issues. You can find the log files here:
Or directly in the console, using the following command:
The content of the log file or of the console is configurable in /etc/asterisk/logger.conf:
Extra flags like moh, fax, sip and rtp are available.
Loglevel can be configured from the asterisk cli.
For example, to set debug and verbose to level 1111, run the following command:
These commands will only take effect with debug and verbose active.
You can find the Hubring log here:
It is recommended to troubleshoot service issues - for example, if Hubring does not start.
To see all operations performed with Hubring key, run the following command:
password is the dbkey value from /etc/hubring/hubring.conf)
The log files created by MariaDB are the following:
To see all queries performed in the database, in the log file, run the following command:
To disable the log, run the same command, but use general_log=OFF instead of general_log=ON. This will log all queries performed in MySQL in the /var/lib/mysql/<hostname>.log file.
To troubleshoot mailing issues, use the Postfix log file located here:
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.