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
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/
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