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

Asterisk Incoming Call

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?
  • 2
1 Solution
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.
lrbristerAuthor Commented:
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

lrbristerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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