Collecting Debug Information for the Asterisk Issue Tracker
This document will provide instructions on how to collect debugging logs from an Asterisk machine, for the purpose of helping bug marshals troubleshoot an issue on https://issues.asterisk.org
Configure Asterisk logging
1. Edit the logger.conf file to enable specific logger channels to output to your filesystem. The word "debug_log_123456" can be changed to anything you want, as that is the filename the logging will be written to.
Modify the file name "debug_log_123456" to reflect your issues.asterisk.org issue number.
Configure verbosity levels and rotate logs
2. From the Asterisk CLI, set the verbose and debug levels for logging (this affects CLI and log output) and then restart the logger module:
Optionally, if you've used this file to record data previously, then rotate the logs:
Enable channel tech or feature specific debug
2.1. Depending on your issue and if a protocol level trace is requested, be sure to enable logging for the channel driver or other module.
|Module (version)||CLI Command|
|New PJSIP driver (12 or higher)|
pjsip set logger on
|SIP (1.6.0 or higher)|
sip set debug on
sip set debug
|IAX2 (1.6.0 or higher)|
iax2 set debug on
iax2 set debug
Issue reproduction and clean up
3. Now that logging is configured, enabled and verbosity is turned up you should reproduce your issue.
4. Once finished, be sure to disable the extra debugging:
4.1. Again, remember to disable any extra logging for channel drivers or features.
SIP (1.4 or higher)
IAX2 (1.4 or higher)
5. Disable logging to the filesystem. Edit the logger.conf file and comment out or delete the line you added in step 1. Using a semi-colon as the first character on the line will comment out the line.
Then reload the logger module (or restart Asterisk) as you did in step 2:
Provide debug to the developers
6. Upload the file located in /var/log/asterisk/debug_log_123456 to the issue tracker.