[asterisk-commits] mmichelson: branch mmichelson/queue-reset r166899 - /team/mmichelson/queue-re...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 29 17:00:41 CST 2008


Author: mmichelson
Date: Mon Dec 29 17:00:41 2008
New Revision: 166899

URL: http://svn.digium.com/view/asterisk?view=rev&rev=166899
Log:
Add some missing logic to the queue reload handler.

The command "queue reload <somequeue>" would not have
actually done anything prior to this commit. Now it will
properly reload all aspects of queue <somequeue> if run


Modified:
    team/mmichelson/queue-reset/apps/app_queue.c

Modified: team/mmichelson/queue-reset/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/queue-reset/apps/app_queue.c?view=diff&rev=166899&r1=166898&r2=166899
==============================================================================
--- team/mmichelson/queue-reset/apps/app_queue.c (original)
+++ team/mmichelson/queue-reset/apps/app_queue.c Mon Dec 29 17:00:41 2008
@@ -6784,6 +6784,13 @@
 		}
 	}
 
+	/* "queue reload <somequeue>" means to reload everything
+	 * for the queue, so set the mask appropriately
+	 */
+	if (a->argc == 3 && queuename) {
+		ast_set_flag(&mask, AST_FLAGS_ALL);
+	}
+
 	reload_handler(1, &mask, queuename);
 
 	return CLI_SUCCESS;




More information about the asterisk-commits mailing list