Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

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

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!
4 Solutions
Try 'sip set debug' at the asterisk prompt.  You'll see how the calls are being framed.
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 AssociateCommented:

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


Incase you are new to wireshark;


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now