[asterisk-commits] kmoore: branch 11 r372446 - in /branches/11: ./ apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 6 09:30:35 CDT 2012


Author: kmoore
Date: Thu Sep  6 09:30:32 2012
New Revision: 372446

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372446
Log:
Ensure "rules" is tab-completable for "queue show"

Previously, tabbing at the end of "queue show" produced a list of
available queues about which information could be shown, but did not
include an alternative command, "rules", to access information about
queue rules. The "rules" item should now be shown in the list of
tab-completable items.

(closes issue AST-958)
Reported-by: John Bigelow
........

Merged revisions 372444 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372445 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    branches/11/   (props changed)
    branches/11/apps/app_queue.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: branches/11/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/app_queue.c?view=diff&rev=372446&r1=372445&r2=372446
==============================================================================
--- branches/11/apps/app_queue.c (original)
+++ branches/11/apps/app_queue.c Thu Sep  6 09:30:32 2012
@@ -8075,6 +8075,12 @@
 	}
 	ao2_iterator_destroy(&queue_iter);
 
+	/* Pretend "rules" is always at the end of the queues list since it is
+	 * an alternate command that should be tab-completable */
+	if (!ret && which == state && !wordlen) {
+		ret = ast_strdup("rules");
+	}
+
 	return ret;
 }
 




More information about the asterisk-commits mailing list