[asterisk-commits] irroot: branch irroot/asterisk-trunk-quack-queue r346390 - /team/irroot/aster...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 29 07:02:53 CST 2011


Author: irroot
Date: Tue Nov 29 06:53:08 2011
New Revision: 346390

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=346390
Log:
Reload Queue members for Queue member functions

Modified:
    team/irroot/asterisk-trunk-quack-queue/apps/app_queue.c

Modified: team/irroot/asterisk-trunk-quack-queue/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/asterisk-trunk-quack-queue/apps/app_queue.c?view=diff&rev=346390&r1=346389&r2=346390
==============================================================================
--- team/irroot/asterisk-trunk-quack-queue/apps/app_queue.c (original)
+++ team/irroot/asterisk-trunk-quack-queue/apps/app_queue.c Tue Nov 29 06:53:08 2011
@@ -6656,6 +6656,7 @@
 	struct member *m;
 	struct ao2_iterator mem_iter;
 	struct call_queue *q;
+	struct ast_flags qflags = {QUEUE_RELOAD_MEMBER};
 
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(queuename);
@@ -6671,8 +6672,7 @@
 	}
 
 	AST_STANDARD_APP_ARGS(args, data);
-
-	if ((q = load_realtime_queue(args.queuename, NULL))) {
+	if ((q = load_realtime_queue(args.queuename, &qflags))) {
 		if (!strcasecmp(args.option, "logged")) {
 			mem_iter = ao2_iterator_init(q->data->members, 0);
 			while ((m = ao2_iterator_next(&mem_iter))) {
@@ -6870,6 +6870,7 @@
 	struct member *m;
 	int buflen = 0, count = 0;
 	struct ao2_iterator mem_iter;
+	struct ast_flags qflags = {QUEUE_RELOAD_MEMBER};
 
 	/* Ensure an otherwise empty list doesn't return garbage */
 	buf[0] = '\0';
@@ -6879,7 +6880,7 @@
 		return -1;
 	}
 
-	if ((q = load_realtime_queue(data, NULL))) {
+	if ((q = load_realtime_queue(data, &qflags))) {
 		ast_log(LOG_WARNING, "queue %s was not found\n", data);
 		return -1;
 	}




More information about the asterisk-commits mailing list