From 13a3661906eec6ba46a988f0954fadb8d89c58e2 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 4 Jun 2007 11:48:01 +0000 Subject: Add support for autocompleting start/stop options of the mixmonitor CLI command. (issue #9862 reported by eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66998 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_mixmonitor.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/app_mixmonitor.c') diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index f29391273..542d323dc 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -420,6 +420,11 @@ static int mixmonitor_cli(int fd, int argc, char **argv) static char *complete_mixmonitor_cli(const char *line, const char *word, int pos, int state) { + char *options[] = {"start", "stop", NULL}; + + if (pos == 1) + return ast_cli_complete (word, options, state); + return ast_complete_channels(line, word, pos, state, 2); } -- cgit v1.2.3