Book Image

Elastix Unified Communications Server Cookbook

Book Image

Elastix Unified Communications Server Cookbook

Overview of this book

Table of Contents (24 chapters)
Elastix Unified Communications Server Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Description and Use of the Most Well-known FreePBX Modules
Addon Market Module
Asterisk Essential Commands
Asterisk Gateway Interface Programming
Helpful Linux Commands
Index

Debugging Asterisk


Besides using Asterisk's logs to check the status of this service, we can use CLI commands to assist us with debugging our PBX service.

The most common commands are as follows:

  • core show uptime: This command prints the version and uptime of the service, with the date of the last reload.

  • sip set debug: This command prints the SIP debugging in Asterisk's CLI. We can debug all the SIP calls or just the peer of our interest (sip set debug peer XXX).

  • pri debug span x: This command is very helpful to debug all the PRI events on our PBX. To debug the MFC/R2 signaling, we can use mfcr2 show channels.

  • core set debug: This command enables the debug visualization of all events on Asterisk's CLI.

How to do it...

If we click on the Reports | Asterisk Logs menu, we can see the /var/log/asterisk/full log in an easier-to-read web page format. We can even search for strings in a certain period of time as shown in the next figure.

In this chapter, we covered the most common recipes or techniques...