summaryrefslogtreecommitdiff
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-09-27 00:55:55 +0000
committerMark Spencer <markster@digium.com>2005-09-27 00:55:55 +0000
commit266529a50318a5537831ec3de8db21e7eb82413f (patch)
treef8710e837b0eb49911dc703d5338ab2d265c7d71 /channels/chan_oss.c
parentfdccf66d52b7937871ce40ad57b4d45b266777f5 (diff)
Fix "console" help (thanks to Andy Dvorak)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rwxr-xr-xchannels/chan_oss.c9
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 },
};
/*