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

Posted on 2009-02-13
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!
Question by:jkockler
    LVL 1

    Accepted Solution

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

    Assisted Solution

    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
    LVL 8

    Assisted Solution

    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
    LVL 32

    Assisted Solution

    by:Kamran Arshad

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

    Incase you are new to wireshark;

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now