]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow non-realtime queues to have realtime members
authorMark Michelson <mmichelson@digium.com>
Mon, 13 Aug 2007 15:39:48 +0000 (15:39 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 13 Aug 2007 15:39:48 +0000 (15:39 +0000)
(issue #10424, reported and patched by irroot)

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

CHANGES
apps/app_queue.c

diff --git a/CHANGES b/CHANGES
index 35588656e6866f9ca15ac7b2224cfd602816afdb..25ad24c1e1973a2067620ceef7058863a83fc2fa 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -144,6 +144,7 @@ Queue changes
      position changes frequently.
   * Added additional information to EXITWITHTIMEOUT and EXITWITHKEY events in the
      queue log.
+  * Added ability for non-realtime queues to have realtime members
 
 MeetMe Changes
 --------------
index 724f66c54b73cab566fff1105211e7269dc20a8e..d571dc35446988a01dbb2dd6a576e6e5e0ff999c 100644 (file)
@@ -410,6 +410,7 @@ struct call_queue {
 
 static AST_LIST_HEAD_STATIC(queues, call_queue);
 
+static void update_realtime_members(struct call_queue *q);
 static int set_member_paused(const char *queuename, const char *interface, int paused);
 
 static void set_queue_result(struct ast_channel *chan, enum queue_result res)
@@ -1254,6 +1255,8 @@ static struct call_queue *load_realtime_queue(const char *queuename)
                        ast_variables_destroy(queue_vars);
 
                AST_LIST_UNLOCK(&queues);
+       } else {
+               update_realtime_members(q);
        }
        return q;
 }