mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix CLI command 'channel request hangup'
Prodded on IRC by Russell and fixed by eliel (closes issue #13730) Reported by: eliel Patches: main_cli.patch uploaded by eliel (license 64) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@150664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -763,7 +763,7 @@ static char *handle_softhangup(struct ast_cli_entry *e, int cmd, struct ast_cli_
|
|||||||
" the next time the driver reads or writes from the channel\n";
|
" the next time the driver reads or writes from the channel\n";
|
||||||
return NULL;
|
return NULL;
|
||||||
case CLI_GENERATE:
|
case CLI_GENERATE:
|
||||||
return ast_complete_channels(a->line, a->word, a->pos, a->n, 2);
|
return ast_complete_channels(a->line, a->word, a->pos, a->n, e->args);
|
||||||
}
|
}
|
||||||
if (a->argc != 4)
|
if (a->argc != 4)
|
||||||
return CLI_SHOWUSAGE;
|
return CLI_SHOWUSAGE;
|
||||||
@@ -773,7 +773,7 @@ static char *handle_softhangup(struct ast_cli_entry *e, int cmd, struct ast_cli_
|
|||||||
ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
|
ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
|
||||||
ast_channel_unlock(c);
|
ast_channel_unlock(c);
|
||||||
} else
|
} else
|
||||||
ast_cli(a->fd, "%s is not a known channel\n", a->argv[2]);
|
ast_cli(a->fd, "%s is not a known channel\n", a->argv[3]);
|
||||||
return CLI_SUCCESS;
|
return CLI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user