[asterisk-commits] mmichelson: trunk r73402 - in /trunk: ./ apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 5 11:05:22 CDT 2007


Author: mmichelson
Date: Thu Jul  5 11:05:22 2007
New Revision: 73402

URL: http://svn.digium.com/view/asterisk?view=rev&rev=73402
Log:
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.


........

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=73402&r1=73401&r2=73402
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu Jul  5 11:05:22 2007
@@ -4255,6 +4255,13 @@
 	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 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",




More information about the asterisk-commits mailing list