diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-09 16:20:43 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-09 16:20:43 +0000 |
commit | 9e70dc3fcbf37861480d7f6ef19b09ef17e8dd65 (patch) | |
tree | b23cb8d0d96cf6ade3405f243bbeb5629fba397f /main/cli.c | |
parent | 0dd9c0e6814f503727544750150da108561bc8df (diff) |
Merged revisions 47372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r47372 | russell | 2006-11-09 11:18:33 -0500 (Thu, 09 Nov 2006) | 3 lines
Fix "core debug channel <whatever>". I guess someone needs to go through and
audit every CLI command that changed number of arguments ...
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47374 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/cli.c b/main/cli.c index 40f506c2a..ae6339e42 100644 --- a/main/cli.c +++ b/main/cli.c @@ -657,18 +657,18 @@ static int handle_debugchan(int fd, int argc, char *argv[]) int is_all; /* 'debug channel {all|chan_id}' */ - if (argc != 3) + if (argc != 4) return RESULT_SHOWUSAGE; - is_all = !strcasecmp("all", argv[2]); + is_all = !strcasecmp("all", argv[3]); if (is_all) { global_fin |= DEBUGCHAN_FLAG; global_fout |= DEBUGCHAN_FLAG; c = ast_channel_walk_locked(NULL); } else { - c = ast_get_channel_by_name_locked(argv[2]); + c = ast_get_channel_by_name_locked(argv[3]); if (c == NULL) - ast_cli(fd, "No such channel %s\n", argv[2]); + ast_cli(fd, "No such channel %s\n", argv[3]); } while (c) { if (!(c->fin & DEBUGCHAN_FLAG) || !(c->fout & DEBUGCHAN_FLAG)) { |