mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-21 20:40:10 +00:00
add StopMixMonitor application (issue #6122, with mods)
Rename and export ast_complete_channels for use by cli completion functions that want to complete from the list of active channels git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
cli.c
6
cli.c
@@ -781,7 +781,7 @@ static char *complete_show_channels(const char *line, const char *word, int pos,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static char *complete_ch_helper(const char *line, const char *word, int pos, int state, int rpos)
|
||||
char *ast_complete_channels(const char *line, const char *word, int pos, int state, int rpos)
|
||||
{
|
||||
struct ast_channel *c = NULL;
|
||||
int which = 0;
|
||||
@@ -809,12 +809,12 @@ static char *complete_ch_helper(const char *line, const char *word, int pos, int
|
||||
|
||||
static char *complete_ch_3(const char *line, const char *word, int pos, int state)
|
||||
{
|
||||
return complete_ch_helper(line, word, pos, state, 2);
|
||||
return ast_complete_channels(line, word, pos, state, 2);
|
||||
}
|
||||
|
||||
static char *complete_ch_4(const char *line, const char *word, int pos, int state)
|
||||
{
|
||||
return complete_ch_helper(line, word, pos, state, 3);
|
||||
return ast_complete_channels(line, word, pos, state, 3);
|
||||
}
|
||||
|
||||
static char *complete_mod_2(const char *line, const char *word, int pos, int state)
|
||||
|
Reference in New Issue
Block a user