Merged revisions 7337 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Mon, 5 Dec 2005 00:11:00 +0000 (00:11 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 5 Dec 2005 00:11:00 +0000 (00:11 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7337 | russell | 2005-12-04 19:09:12 -0500 (Sun, 04 Dec 2005) | 2 lines

don't delete dynamic queue members when reloading the static members from a realtime database (issue #5922)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7338 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index d997d25..134c43f 100644 (file)
@@ -850,10 +850,11 @@ static struct ast_call_queue *reload_queue_rt(const char *queuename, struct ast_
                v = v->next;
        }
 
-       /* Temporarily set members dead so we can detect deleted ones. */
+       /* Temporarily set non-dynamic members dead so we can detect deleted ones. */
        m = q->members;
        while (m) {
-               m->dead = 1;
+               if (!m->dynamic)
+                       m->dead = 1;
                m = m->next;
        }