From: Joshua Colp Date: Mon, 4 Jun 2007 11:48:01 +0000 (+0000) Subject: Add support for autocompleting start/stop options of the mixmonitor CLI command.... X-Git-Tag: 1.6.0-beta1~3^2~2522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a3661906eec6ba46a988f0954fadb8d89c58e2;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index f293912736..542d323dc6 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); }