mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user