aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 16:05:22 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 16:05:22 +0000
commit7b42fa5f578af02b838fffe0503cf8b4f574d5d1 (patch)
treece1c9f2346ea91d472f6fe4a3b04d434f3301aee /apps
parentc171af506b537f7a13e5c61e9cdf22c9737e09f8 (diff)
Merged revisions 73400 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r73400 | mmichelson | 2007-07-05 10:59:41 -0500 (Thu, 05 Jul 2007) | 5 lines Correcting a minor CLI bug I found. When issuing the queue show command, if you type queue show and then press tab, you can continue pressing tab and it will keep auto-completing queue names even though only 1 queue can be used as an argument. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73402 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 32091e92a..4547b3ad5 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4255,6 +4255,13 @@ static char *complete_queue(const char *line, const char *word, int pos, int sta
return ret;
}
+static char *complete_queue_show(const char *line, const char *word, int pos, int state)
+{
+ if (pos == 2)
+ return complete_queue(line, word, pos, state);
+ return NULL;
+}
+
/*!\brief callback to display queues status in manager
\addtogroup Group_AMI
*/
@@ -4709,7 +4716,7 @@ static const char qrm_cmd_usage[] =
static struct ast_cli_entry cli_queue[] = {
{ { "queue", "show", NULL },
queue_show, "Show status of a specified queue",
- queue_show_usage, complete_queue, NULL },
+ queue_show_usage, complete_queue_show, NULL },
{ { "queue", "add", "member", NULL },
handle_queue_add_member, "Add a channel to a specified queue",