dect
/
asterisk
Archived
13
0
Fork 0

Command offsets were not changed correctly when the command syntax for

'pri set debug' was changed from 'pri debug'.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156647 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2008-11-13 19:10:28 +00:00
parent 9a53e8d9e9
commit c35b7f560f
1 changed files with 3 additions and 3 deletions

View File

@ -11806,12 +11806,12 @@ static char *handle_pri_debug(struct ast_cli_entry *e, int cmd, struct ast_cli_a
return CLI_SHOWUSAGE;
}
if (!strcasecmp(a->argv[4], "on")) {
if (!strcasecmp(a->argv[3], "on")) {
level = 1;
} else if (!strcasecmp(a->argv[4], "off")) {
} else if (!strcasecmp(a->argv[3], "off")) {
level = 0;
} else {
level = atoi(a->argv[4]);
level = atoi(a->argv[3]);
}
span = atoi(a->argv[5]);
if ((span < 1) || (span > NUM_SPANS)) {