diff options
author | Joshua Colp <jcolp@digium.com> | 2007-06-04 11:48:01 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-06-04 11:48:01 +0000 |
commit | 13a3661906eec6ba46a988f0954fadb8d89c58e2 (patch) | |
tree | 24d3a8d148bd3acdb86a0ef8f7f15ebda8530a13 /apps/app_mixmonitor.c | |
parent | ce9ec91897d8ddf1b26e8bb67d3dee2d482730a3 (diff) |
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
Diffstat (limited to 'apps/app_mixmonitor.c')
-rw-r--r-- | apps/app_mixmonitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |