aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-17 17:31:07 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-17 17:31:07 +0000
commit236e62078c388457c14a6bbc1c007b1c83a3edd7 (patch)
tree02edcea8d052434d000c59ab835fd29facebd5e3 /main/cli.c
parentf9bc0453df131642bd497a6f4584ce369eff413f (diff)
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: http://svn.digium.com/svn/asterisk/trunk@150664 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/cli.c b/main/cli.c
index 0b8120617..f9535c40d 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -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";
return NULL;
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)
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_channel_unlock(c);
} 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;
}