Here’s what I am trying to do:
My manager wants an alert when a call has been holding in one of our Queues for more than 17secs. Towards this end, he purchased a Telstrobe, a flashing light that gets attached to a phone cord, and blinks when that line rings. We would like this light to start blinking when a call has been on hold for 17+ seconds. I believe I am going to somehow have to pull the hold time through the AMI, as once a call goes into a Queue in Asterisk, there seems to be no way in the dialplan to get information about the call.
I’ve been playing around with the AMI, trying to find a set of commands / actions to let me get the information I need. So far, it looks like QueueStatus is a good starting point, as if I can monitor for just QueueEntry events, I should be able to retrieve the wait times.
So, my question is, is there a way to “filter” for certain “event types” within the AMI, or will I need to have whatever script I come up with filter for the events I need?
As for the flashing light, that should be the easy part, when the script spots a 17+ second hold time, it will simply call an extension, which is connected to the light.