diff --git a/apps/app_queue.c b/apps/app_queue.c index b94f1de16dab5e8a884235723d00fb6548f0dd19..821aceedda8b439d95ac8f67613492f2baec7bf0 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -8080,6 +8080,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; }