TCPdump is a powerful command-line packet analyzer, which may be used for a SIP message sniffing/analyzing. TCPdump is preinstalled on many linux distributions, or may be installed directly from debian repository:
apt-get install tcpdump
TCPdump allows write sniff to a file or display it realtime. Its usage for SIP message analysis may look like: