Skip to content
Snippets Groups Projects
Commit 2ea9bb22 authored by Russell Bryant's avatar Russell Bryant
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@47374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 031dc7b5
No related branches found
No related tags found
No related merge requests found
...@@ -657,18 +657,18 @@ static int handle_debugchan(int fd, int argc, char *argv[]) ...@@ -657,18 +657,18 @@ static int handle_debugchan(int fd, int argc, char *argv[])
int is_all; int is_all;
/* 'debug channel {all|chan_id}' */ /* 'debug channel {all|chan_id}' */
if (argc != 3) if (argc != 4)
return RESULT_SHOWUSAGE; return RESULT_SHOWUSAGE;
is_all = !strcasecmp("all", argv[2]); is_all = !strcasecmp("all", argv[3]);
if (is_all) { if (is_all) {
global_fin |= DEBUGCHAN_FLAG; global_fin |= DEBUGCHAN_FLAG;
global_fout |= DEBUGCHAN_FLAG; global_fout |= DEBUGCHAN_FLAG;
c = ast_channel_walk_locked(NULL); c = ast_channel_walk_locked(NULL);
} else { } else {
c = ast_get_channel_by_name_locked(argv[2]); c = ast_get_channel_by_name_locked(argv[3]);
if (c == NULL) 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) { while (c) {
if (!(c->fin & DEBUGCHAN_FLAG) || !(c->fout & DEBUGCHAN_FLAG)) { if (!(c->fin & DEBUGCHAN_FLAG) || !(c->fout & DEBUGCHAN_FLAG)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment