projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09fdcf
)
List which devices are inputs and outputs in "console list devices"
author
Russell Bryant
<russell@russellbryant.com>
Thu, 17 Jan 2008 23:21:30 +0000
(23:21 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Thu, 17 Jan 2008 23:21:30 +0000
(23:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99009
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_console.c
patch
|
blob
|
history
diff --git
a/channels/chan_console.c
b/channels/chan_console.c
index
b14e797
..
38bd3e6
100644
(file)
--- a/
channels/chan_console.c
+++ b/
channels/chan_console.c
@@
-801,7
+801,9
@@
static char *cli_list_devices(struct ast_cli_entry *e, int cmd, struct ast_cli_a
const PaDeviceInfo *dev = Pa_GetDeviceInfo(index);
if (!dev)
continue;
- ast_cli(a->fd, "Device Name: %s\n", dev->name);
+ ast_cli(a->fd, "Device Name: %s %s %s\n", dev->name,
+ dev->maxInputChannels ? "(Input)" : "",
+ dev->maxOutputChannels ? "(Output)" : "");
if (index == def_input)
ast_cli(a->fd, " ---> Default Input Device\n");
if (index == def_output)