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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@372445
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
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;
}