mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-23 00:39:34 -07:00
Merge "chan_console: Use correct parameter for 'set active'" into 13
This commit is contained in:
@@ -1235,7 +1235,7 @@ static char *cli_console_active(struct ast_cli_entry *e, int cmd, struct ast_cli
|
||||
return CLI_SUCCESS;
|
||||
}
|
||||
|
||||
if (!(pvt = find_pvt(a->argv[e->args - 1]))) {
|
||||
if (!(pvt = find_pvt(a->argv[e->args]))) {
|
||||
ast_cli(a->fd, "Could not find a device called '%s'.\n", a->argv[e->args]);
|
||||
return CLI_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user