[asterisk-commits] trunk r35311 - /trunk/apps/app_queue.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jun 21 11:39:56 MST 2006


Author: file
Date: Wed Jun 21 13:39:56 2006
New Revision: 35311

URL: http://svn.digium.com/view/asterisk?rev=35311&view=rev
Log:
Actually allow realtime queue members to be added (issue #7408 reported by tgrman)

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=35311&r1=35310&r2=35311&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed Jun 21 13:39:56 2006
@@ -964,7 +964,7 @@
 	struct ast_variable *v;
 	struct call_queue *q;
 	struct member *m, *prev_m, *next_m;
-	char *interface;
+	char *interface = NULL;
 	char *tmp, *tmp_name;
 	char tmpbuf[64];	/* Must be longer than the longest queue param name. */
 
@@ -1046,8 +1046,7 @@
 			m->dead = 1;
 	}
 
-	interface = NULL;
-	while (ast_category_browse(member_config, interface))
+	while ((interface = ast_category_browse(member_config, interface)))
 		rt_handle_member_record(q, interface, ast_variable_retrieve(member_config, interface, "penalty"));
 
 	/* Delete all realtime members that have been deleted in DB. */



More information about the asterisk-commits mailing list