You Are here: Home News Scripts Show callers waiting in an Asterisk queue

23 -May -2013
Register

REGISTER

*
*
*
*
*
Fields marked with an asterisk (*) are required.
Show callers waiting in an Asterisk queue PDF Print E-mail
News - Scripting
Written by Mark Veenstra   
Thursday, 13 January 2011 17:04

I am experiencing Asterisk 1.8 the last weeks as you have noticed. I must say that I am pretty amazed by it's functionality, am I wondering why companies spend a lot of money for commercial telephony solutions when there is Asterisk. But hell, who am I? Well being all experienced now *uch uch*, I came up with a first version of a PHP webpage that shows you all callers waiting in an Asterisk queue inclusive the members for that queue. Ofcourse there are several other solutions out there, but none that I found where free of charge. And even when I looked at the functionality it was more that I needed. So that is why I wrote my own little PHP webpage to do this.

The PHP page simply shows you the callers waiting in a selected queue. You can switch watching queues simply with a select box. Also the refresh time can be set to your own needs. Here a screenshot of the PHP page:

queue-list

As you can see it is a lean, mean callers viewing machine :-). As I said it is the first version. I also only tested it on Asterisk 1.8 with also using FreePBX 2.8. For me it works fine, hopefully it does for you also. Otherwise you can always expand the code as you like. But if you do it would be great to send me your version, maybe I can use it also. This script does not have a user management system. If you want one, you can build it in the code or you add a .htaccess with .htpasswd to the document root of that folder.

Well if you have been getting interested, you can download the script here:

It is under GNU General Public License. So you are free to change it as you want. It also includes a README file which contains the installation instructions. Those won't be to hard to handle.

Well, have fun!



Share this....
Last Updated on Thursday, 13 January 2011 17:38
 

Comments 

 
#6 Lorne Gaetz 2012-04-19 23:00
I found a fox for issue #1 I identified in the previous comment. Details are in the previous link.
Quote
 
 
#5 Lorne Gaetz 2012-04-19 14:29
Thanks Mark.

I have installed this on a system running Asterisk 1.8 and FreePBX 2.8. I have edited defines.php and the the page seems to be working fine. Two comments based on this one experience:
1 - The list of callers in the queue shows one less than the actual number of callers
2 - In the "Caller ID" column the caller's channel is listed and not the Caller's name or number.
I have started a thread here that I will keep up to date:
pbxinaflash.com/.../...
Quote
 
 
#4 jshrek 2011-06-03 04:27
I wonder if there is a way to access the current state of each extension (not just queues)? For example running "core show hints" from CLI will tell you the state, but is this available from database?
Quote
 
 
#3 Robert 2011-06-03 02:32
Thanks Mark, This is sorely what has been lacking for asterisk for a while a simple easy to use script for a wallboard purposes.

It seems to have problems with more than a couple of agents in the queue (e.g. try having 5 available) the table rows flow past the end of the table.

I'll try and make some changes and then submit the changes back. What I would like to do is add some JavaScript to increment call waiting time between refresh so it looks more "live" and display multiple queues.
Quote
 
 
#2 Mark Veenstra 2011-05-30 16:31
Thnx
Quote
 
 
#1 jshrek 2011-05-30 15:57
Good little script! Will be helpful when trying to access Asterisk data from MySQL db! Thanks
Quote