]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: queue members can receive multiple calls 78/2678/2
authorKevin Harwell <kharwell@digium.com>
Thu, 21 Apr 2016 19:23:21 +0000 (14:23 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 25 Apr 2016 17:39:56 +0000 (12:39 -0500)
commit30ab21d5fa42ef1412e0dede665eda7c77784627
tree9cb2c68e4d678b283da1a46979b60eaaefcf8487
parent99fcf2a791c2c78ae0ffffce2ac3e8db18ca5be0
app_queue: queue members can receive multiple calls

It was possible for a queue member that is a member of at least 2 or more
queues to receive mulitiple calls at the same time. This happened because
of a race between when a member was being rung and when the device state
notified the other queue(s) member object of the state change.

This patch makes it so when a queue member is being rung it gets added to
a global pool of queue members. If that same member is tried again, e.g.
from another queue, and it is found to already exist in the pending member
container then it will not ring that member.

ASTERISK-16115 #close

Change-Id: I546dd474776d158c2b6be44205353dee5bac7e48
apps/app_queue.c