diff --git a/apps/app_queue.c b/apps/app_queue.c index 90f1a5e9ab..0f7c8c7893 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -7396,6 +7396,12 @@ static char *complete_queue(const char *line, const char *word, int pos, int sta } 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; }