From: Kinsey Moore Date: Tue, 25 Sep 2012 18:20:04 +0000 (+0000) Subject: "show" completion option for "queue" shouldn't appear twice X-Git-Tag: 10.10.0-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27eb74df8108b7ba78b2132c4a2e8a4c2bc299ba;p=thirdparty%2Fasterisk.git "show" completion option for "queue" shouldn't appear twice 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 ........ Merged revisions 373666 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@373675 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 1b6bbdd06f..f3b0fc3e86 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -8447,11 +8447,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"), };