]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_queue: Fix queues randomly disappearing on reload 26/4826/2
authorkkm <kkm@smartaction.com>
Wed, 25 Jan 2017 04:31:38 +0000 (20:31 -0800)
committerKirill Katsnelson <kkm@smartaction.com>
Fri, 27 Jan 2017 02:20:55 +0000 (20:20 -0600)
commit4ae2ff5f210f1baf8467e01cc5195388c9cd2023
tree1af89637bba27ae5bfc1476e61eb1bba96b68c77
parent75ef430f2f2814f0c9f8029a0a7768e1a3a25ce7
app_queue: Fix queues randomly disappearing on reload

With 500+ queues and a reload every minute, a random queue disappears
upon reload. The cause is mususe of the 'dead' flag. Namely, all queues
were marked dead up front, and then "resurrected" by dropping this flag
for those found in the configuration. But a queue marked dead can be
removed also when control leaves the app entry point on a PBX thread.

With this change, the queue is marked only not found, and at the end of
reload only the queues that are still not found are actually marked as
dead, so the dead flag is never reset, and set only on positively dead
queues.

ASTERISK-26755

Change-Id: I3a4537aec9eb8d8aeeaa0193407e3523feb004bf
apps/app_queue.c