We help IT Professionals succeed at work.

How to trace IP header of and outbound SIP call, to see what is in the "From"

Medium Priority
Last Modified: 2013-11-12
I am having issues setting the caller id on outbound calls from an asterisk box.  I have set the caller id in the dial plan etc., but cid on receiving phones still shows the carrier's phone number.  All calls to extensions managed by server are showing the correct caller id but when I place a call through the carrier, it shows their DID.  They have assured me they are set to allow me to set caller id and have asked that I "provide a trace on the outbound calls to determine if the FROM in the IP header is correct."

How do I do this on Linux Ubuntu?

I am a newb with linux and with tracing IP packets.

Thanks a million!
Watch Question

Try 'sip set debug' at the asterisk prompt.  You'll see how the calls are being framed.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Try using tcpdump
tcpdump -ni eth0 port 5060
you can open a second window and monitor the wan as well
tcpdump -ni eth1 port 5060
ngrep is a very usefull tool. It should be part of the ubuntu repository. I'm not too familiar with ubuntu but I guess its something like
"apt-get install ngrep"

Then you can trace like this.

ngrep -Wbyline  port 5060
Kamran ArshadIT Associate

You may use a protocol analyzer like Wireshark to view the SIP traffic;


Incase you are new to wireshark;

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.