SIP/IAX debugging

Whenever we need to know why some calls are not completed or to determine the state of an SIP, or IAX trunk, or peer, we need the right tools to do it. This section will provide us the tools for a fast but significant debug of our IP-PBX.

How to do it…

  1. We can check the status and flow of the SIP protocol and calls throughout our PBX by using Asterisk's commands. We recommend running them directly from Asterisk's Command Line Interface.
  2. For example, this is the output for the sip show peers command:
    How to do it…
  3. We can even combine these commands with others, such as grep. In the next example, we will connect to the Asterisk's CLI, execute the command ...

Get Elastix Unified Communications Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.