Calls monitor
Here's a small application that I did with Autoit to monitor calls in queue for Asterisk 14. I'm using the AMI (Asterisk Manager Interface) to receive data about queue status from Asterisk by TCP. The application will monitor up to 3 calls waiting in queue. The time will become red if a user have been waiting more than 90 seconds.
The first thing to do is to enable the AMI in /etc/asterisk/manager.conf and add a user that will be able to read queue status.
[general]
enabled = yes
webenabled = no
port = 5038
bindaddr = my_asterisk_IP
[Carl]
secret = my_secure_password
read = agent
write = call,reporting,command,agent,system
deny=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.255.0
Reload the manager file after mofification:
CLI> config reload /etc/asterisk/manager.conf
Before using this application the following will have to be modified and recompiled to fit for your environment. I know I should have put these settings in an ini file ....
Global $szIPADDRESS = "my_asterisk_IP" ; Your asterisk IP
Send_Data_To_Asterisk("Secret: my_secure_password" & @CRLF) ; Your AMI password
TCPSend($ConnectedSocket, "Queue: reception" & @LF) ; Your queue
TCPSend($ConnectedSocket, "Member: PJSIP/my_endpoint" & @LF & @LF) ; Your queue member
Check_Exten_Status("My_Phone_Extension") ; Extension of queue member TCPSend($ConnectedSocket, "Context: mycontext" & @LF & @LF); Your asterisk context
Download it here: Call Monitor