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
This commit is contained in:
Joshua Colp
2007-06-04 11:48:01 +00:00
parent ce9ec91897
commit 13a3661906

View File

@@ -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);
}