app_queue: Crash when transferring
authorKevin Harwell <kharwell@digium.com>
Thu, 17 Sep 2015 16:31:15 +0000 (11:31 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 17 Sep 2015 16:31:15 +0000 (11:31 -0500)
commit6409e7b11a2310196a9978b30a6b79e2760be592
tree3dc147c498bed76bfc7b9f34efd68c81a0f0324e
parent5c713fdf18ffa934e0cac8ddb29e4ad95a68200b
app_queue: Crash when transferring

During some transfer scenarios involving queues Asterisk would sometimes
crash when trying to obtain a channel snapshot (could happen on caller or
member channels). This occurred because the underlying channel had already
disappeared when trying to obtain the latest snapshot.

This patch adds a reference to both the member and caller channels that
extends to the lifetime of the queue'd call, thus making sure the channels
will always exist when retrieving the latest snapshots.

ASTERISK-25185 #close
Reported by: Etienne Lessard

Change-Id: Ic397fa68fb4ff35fbc378e745da9246a7b552128
apps/app_queue.c