Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a real time program that shows the inbound calls. The problem is that i don't know where to get the call status, like hold, calling or answered.

Asterisk has a Variable ${CALLERID(num)} to get the number but don't know where to get the rest of the info.

share|improve this question
up vote 1 down vote accepted

You will get it through PHP-AGI. You can connect to Asterisk Cli using this. The command "queue show

Hope the above will help

share|improve this answer

To get information from Asterisk you can use the Asterisk Manager Interface (AMI), there are some information about it available at and Then I am sure you can monitor the status of peers, channels and if they are calling or answering.

I hope this will help you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.