How can I capture a SIP trace on my switch?

When setting up a new SIP trunk with a provider or troubleshooting call failures, it's important
to be able to capture a signaling trace of an outbound call. This is also important when
troubleshooting SIP registration issues with a new provider.

In Asterisk, you can activate SIP debugging via the Asterisk CLI using the SIP set debug

SIP set debug peer on
Turns on SIP debugging globally showing all SIP traffic to and from the Asterisk gateway
SIP set debug IP 

Allows you to debug only to and from a particular IP address
SIP set debug off
Turns off all SIP debugging

If you don't want to enable debugging on your switch, you can use a network protocol
analyzer such as Wireshark to capture the SIP and media traffic on your calls. To learn more
about Wireshark, please visit This site includes step-by-step videos
on how to setup Wireshark on your network.