diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-27 00:55:55 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-27 00:55:55 +0000 |
commit | 25f381fc627f9fafb742ed52cbd53e0b9ec6e975 (patch) | |
tree | f8710e837b0eb49911dc703d5338ab2d265c7d71 | |
parent | 244388041a8dbc39989135eccab888dd30b286bb (diff) |
Fix "console" help (thanks to Andy Dvorak)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6670 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_oss.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index d5d8479ae..8c935f363 100755 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -1202,6 +1202,12 @@ static char transfer_usage[] = " Transfers the currently connected call to the given extension (and\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[]) { 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 }, { { "send", "text", NULL }, console_sendtext, "Send text to the remote device", sendtext_usage }, { { "autoanswer", NULL }, console_autoanswer, "Sets/displays autoanswer", autoanswer_usage, autoanswer_complete }, - { { "console", NULL }, console_active, "Sets/displays active console", - "console foo sets foo as the console"} + { { "console", NULL }, console_active, "Sets/displays active console", console_usage }, }; /* |