mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
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:
@@ -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)
|
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);
|
return ast_complete_channels(line, word, pos, state, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user