I recently wrote this as a simple web page to show the current calls in progress on an Asterisk PBX. It was written for an A2Billing system.
It just runs a ‘core show channels concise’ and then shows lines that contain certain text. By default it shows lines that are ‘Up’ and running the ‘Dial’ application, but this could be changed. It uses twitter bootstrap to add some formatting to the table.
The div containing the table is refreshed every 3 seconds. This is what it looks like –
Before we get started there are a few things you need
- This status page was written against Asterisk 1.8 – it may work with other versions
- ‘/etc/asterisk/phpagi.conf’ should be configured correctly for your system. You should ensure it contains lines like this, where the asmanager settings match those in /etc/asterisk/manager.conf –
First we need to decide where to install the status page. This will depend on your system but if you are running FreePBX then in the ‘admin’ folder is probably a good idea. I recommend you put it in a folder not accessible from the internet as no consideration to security has been made!
Now download the status page. You will also need PHPAGI, which is used to connect to Asterisk, and can be found here – http://phpagi.sourceforge.net/
tar xvfz sysadminman-call-status.tar.gz
And that’s it! Just point your browser to the call-status folder.
Licensed under – http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
A fork of this project for use with FreePBX can be found here – https://github.com/lgaetz/freepbx-Call_Status