| Show callers waiting in an Asterisk queue |
|
|
|
| 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:
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! |
| Last Updated on Thursday, 13 January 2011 17:38 |




Click here to hear this article
Comments
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/.../...
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.