]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue crashes randomly, often during call-transfers
authorDavid Vossel <dvossel@digium.com>
Mon, 30 Nov 2009 16:32:58 +0000 (16:32 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 30 Nov 2009 16:32:58 +0000 (16:32 +0000)
commit264a1a78a9484e9fa2800ab9997f0f9cd955ba63
treedb8e9b01140b55bfc2454cae40162d065df0f0ad
parent85cce5cb4bbe5caa5c7e4799084e2e9eb72a65c8
app_queue crashes randomly, often during call-transfers

In app_queue, it is possible for a call_queue to be destroyed
while another object still holds a pointer to it.  This patch
converts call_queue objects to ao2 objects allowing them to be
ref counted.  This makes it safe for the queue_ent object in
queue_exec() to reference it's parent call_queue even after it
has left the queue.

(closes issue #15686)
Reported by: Hatrix
Patches:
      v2_queue_ao2.diff uploaded by dvossel (license 671)
Tested by: dvossel, aragon

Review: https://reviewboard.asterisk.org/r/427/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@231437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c