aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-09 16:28:15 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-09 16:28:15 +0000
commit861a12e40a786610176a9e7b30a10ec1b712a444 (patch)
tree6336064b86ac4cc0d7fafdcffd4bddf52cbcd046 /main/cli.c
parent04fd97340c957e830598d1d105884d551274bc7b (diff)
fix tab completion for "core debug channel" and "core no debug channel"
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47377 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/cli.c b/main/cli.c
index 9163ae002..1b59f262b 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -956,6 +956,11 @@ static char *complete_ch_4(const char *line, const char *word, int pos, int stat
return ast_complete_channels(line, word, pos, state, 3);
}
+static char *complete_ch_5(const char *line, const char *word, int pos, int state)
+{
+ return ast_complete_channels(line, word, pos, state, 4);
+}
+
static char *complete_mod_3_nr(const char *line, const char *word, int pos, int state)
{
return ast_module_helper(line, word, pos, state, 2, 0);
@@ -1132,11 +1137,11 @@ static struct ast_cli_entry cli_cli[] = {
{ { "core", "debug", "channel", NULL },
handle_debugchan, "Enable debugging on a channel",
- debugchan_help, complete_ch_3, &cli_debug_channel_deprecated },
+ debugchan_help, complete_ch_4, &cli_debug_channel_deprecated },
{ { "core", "no", "debug", "channel", NULL },
handle_nodebugchan, "Disable debugging on a channel",
- nodebugchan_help, complete_ch_3, &cli_no_debug_channel_deprecated },
+ nodebugchan_help, complete_ch_5, &cli_no_debug_channel_deprecated },
{ { "core", "set", "debug", NULL },
handle_debug, "Set level of debug chattiness",