Call Hangup Event Triggers For Extension That Answers Call

Talk with others about developing applications for Switchvox

Moderators: bmdhacks, dpodolsky, tristand, jwitt, joshuas

Call Hangup Event Triggers For Extension That Answers Call

Postby KKiernan » Fri May 11, 2012 8:55 am

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.
KKiernan
Newsterisk
 
Posts: 7
Joined: Fri May 04, 2012 7:39 am

Re: Call Hangup Event Triggers For Extension That Answers Call

Postby KKiernan » Fri May 11, 2012 9:45 am

After capturing more calls I noticed that the queue calls turn the call over to the queue's extension number, not the extension that answers the call. I'll have to take this into account in my application in order to use the triggers.
KKiernan
Newsterisk
 
Posts: 7
Joined: Fri May 04, 2012 7:39 am


Return to Switchvox Developers

Who is online

Users browsing this forum: No registered users and 2 guests