Solved

Asterisk Incoming Call

Posted on 2011-09-30
3
1,246 Views
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
192.168.3.137    1025        020bf6ad528  00102/00000  0x280004 (ulaw|  No       Init: INVITE

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

Accepted Solution

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

http://www.voip-info.org/wiki/view/Asterisk+manager+API

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

http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Status

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

http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Events

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.
0
 

Author Comment

by:lrbrister
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

0
 

Author Closing Comment

by:lrbrister
ID: 36904590
Thnx
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FreePBX to CUCM Error 1 72
Issues with Hosted 3CX 1 82
Skype for Business 2015 / Lync 6 80
Cisco CUCM 10 reporting on AAR 2 76
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

839 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