diff --git a/apps/app_queue.c b/apps/app_queue.c index 95833db204..ed9406a46b 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -7131,6 +7131,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; }