I am using the event triggers for an application I am working on. I was getting unexpected results, so I logged each trigger event to a MySQL database and found that the hangup event is firing for the extension that answers the call when the call is received from a queue.
The events seems to work fine if an extension is dialed directly. I've only noticed the problem when the call is taken from a queue. Here is what happens:
1. The caller enters the IVR and the menu begins
2. The caller selects an option entering them into a queue
3. The switchvox triggers the "route_to_exten" event for each extension in that queue
4. An extension answers
5. The switchvox triggers the "hangup" event for each extension in the queue INCLUDING the extension that answered the call
Occasionally the trigger doesn't fire for the extension that answered, but more often than not it does. Has anyone experienced this problem? I'd rather use the triggers because they are convenient.
