mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix "console" help (thanks to Andy Dvorak)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1202,6 +1202,12 @@ static char transfer_usage[] =
|
|||||||
" Transfers the currently connected call to the given extension (and\n"
|
" Transfers the currently connected call to the given extension (and\n"
|
||||||
"context if specified)\n";
|
"context if specified)\n";
|
||||||
|
|
||||||
|
static char console_usage[] =
|
||||||
|
"Usage: console [device]\n"
|
||||||
|
" If used without a parameter, displays which device is the current\n"
|
||||||
|
"console. If a device is specified, the console sound device is changed to\n"
|
||||||
|
"the device specified.\n";
|
||||||
|
|
||||||
static int console_active(int fd, int argc, char *argv[])
|
static int console_active(int fd, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
@@ -1234,8 +1240,7 @@ static struct ast_cli_entry myclis[] = {
|
|||||||
{ { "transfer", NULL }, console_transfer, "Transfer a call to a different extension", transfer_usage },
|
{ { "transfer", NULL }, console_transfer, "Transfer a call to a different extension", transfer_usage },
|
||||||
{ { "send", "text", NULL }, console_sendtext, "Send text to the remote device", sendtext_usage },
|
{ { "send", "text", NULL }, console_sendtext, "Send text to the remote device", sendtext_usage },
|
||||||
{ { "autoanswer", NULL }, console_autoanswer, "Sets/displays autoanswer", autoanswer_usage, autoanswer_complete },
|
{ { "autoanswer", NULL }, console_autoanswer, "Sets/displays autoanswer", autoanswer_usage, autoanswer_complete },
|
||||||
{ { "console", NULL }, console_active, "Sets/displays active console",
|
{ { "console", NULL }, console_active, "Sets/displays active console", console_usage },
|
||||||
"console foo sets foo as the console"}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user