Asterisk incoming caller id in CLI ?

Posted on 2009-12-28
Last Modified: 2013-11-12


  Is there a way to see the calling party cid from the asterisk CLI?

I can see the numbers that my users are calling, when I watch in the CLI, but is there a way to see the caller id of the person calling the user?

In other words, the caller id passed by the origination carrier.

Question by:jkockler
    LVL 16

    Expert Comment


    >show channels

    LVL 5

    Expert Comment

    on the database that is attached to asterisk in the cdr database, you can see the incoming number and the number it is pushed to

    LVL 4

    Author Comment

    is "show channels" any different than "core show channels"
    LVL 16

    Expert Comment

    Almost the same

    core show channels:  Display information on channels
    show channels:  List active SIP channels

    LVL 4

    Author Comment

    show channels does not display the incoming caller id.
    LVL 2

    Accepted Solution

    You need to do show channels to show the active channels then show channel <incoming channel name> and you will see the Caller ID listed. You will need to add "core" before the command for asterisk 1.6. So as an example:

    CLI> show channels
    Channel              Location             State   Application(Data)            
    SIP/208-165a12f8     s@macro-dialintvm:1  Up      AppDial((Outgoing Line))      
    SIP/someprovider-8bf3a8c0 s@macro-dialintvm:3  Up      Dial(SIP/207&SIP/208&SIP/224&S
    2 active channels
    1 active call
    4966 calls processed
    CLI> core show channel SIP/someprovider-8bf3a8c0
     -- General --
               Name: SIP/someprovider-8bf3a8c0
               Type: SIP
           UniqueID: 1263643404.11595
          Caller ID: 5555555555
     Caller ID Name: Some Name



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now