Add support for autocompleting start/stop options of the mixmonitor CLI command....
authorJoshua Colp <jcolp@digium.com>
Mon, 4 Jun 2007 11:48:01 +0000 (11:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 4 Jun 2007 11:48:01 +0000 (11:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66998 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index f293912..542d323 100644 (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);
 }