Asterisk Incoming Call

Posted on 2011-09-30
Last Modified: 2013-12-27
I am tring to capture the inbound caller phone number

I've set up a .Net form using:
Private _manager As New Asterisk.NET.Manager.ManagerConnection

I can connect to the system and send commands (show queues 691...sip show channels)
If i execute during an inbound call I can see:
show ques show incoming call etc

show channels gives me this    1025        020bf6ad528  00102/00000  0x280004 (ulaw|  No       Init: INVITE

What do I need to do to see the incoming caller number?
Question by:lrbrister
  • 2
LVL 25

Accepted Solution

kode99 earned 500 total points
ID: 36895368
Decent reference for AMI events and actions which probably help you out with AMI stuff in general,

Anyway,  for callerid from through AMI you can request it with a GetVar action or a Status request.

You may also turn on events if you need info in real time,

I don't use the .net lib so I don't know exactly how it handles the event data.  I'm fairly sure that the incoming call event will contain the callerID info (might not be the same for all Asterisk versions though).  If not you can request it in response to the event with a GetVar.

Author Comment

ID: 36902898
I actually found the following commands
core show channels verbose
core show channels concise

However...there is a "pre-pend" that is not showing up with those two cammands.
The "que" is...but not the prepend


Author Closing Comment

ID: 36904590

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

770 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