]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: queue members can receive multiple calls 77/2677/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:47 +0000 (12:39 -0500)
commitc345e530f4401c06d1f87a938cff3a12de84e048
tree4e2fde7422e612309d81395cbadec6c46ab7365a
parenta8f8e3c3400414161061b1461befffd62c43bd66
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