]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
"show" completion option for "queue" shouldn't appear twice
authorKinsey Moore <kmoore@digium.com>
Tue, 25 Sep 2012 18:15:06 +0000 (18:15 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 25 Sep 2012 18:15:06 +0000 (18:15 +0000)
When tab-completing CLI commands starting with "queue", "show" appeared
twice in the list due to the way that Asterisk's tab completion
functions and the order in which the commands were registered. The
registration order has been altered to resolve this issue.

(closes issue AST-940)
Reported-by: Steve Pitts
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@373666 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index aa7b778d67d0f2615d66a6662c3ec137bd1e4eb1..167f272c6b3002af841342e913b6eaad6a1a6070 100644 (file)
@@ -8188,11 +8188,11 @@ static const char qsmp_cmd_usage[] =
 
 static struct ast_cli_entry cli_queue[] = {
        AST_CLI_DEFINE(queue_show, "Show status of a specified queue"),
+       AST_CLI_DEFINE(handle_queue_rule_show, "Show the rules defined in queuerules.conf"),
        AST_CLI_DEFINE(handle_queue_add_member, "Add a channel to a specified queue"),
        AST_CLI_DEFINE(handle_queue_remove_member, "Removes a channel from a specified queue"),
        AST_CLI_DEFINE(handle_queue_pause_member, "Pause or unpause a queue member"),
        AST_CLI_DEFINE(handle_queue_set_member_penalty, "Set penalty for a channel of a specified queue"),
-       AST_CLI_DEFINE(handle_queue_rule_show, "Show the rules defined in queuerules.conf"),
        AST_CLI_DEFINE(handle_queue_reload, "Reload queues, members, queue rules, or parameters"),
        AST_CLI_DEFINE(handle_queue_reset, "Reset statistics for a queue"),
 };