diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-17 23:21:30 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-17 23:21:30 +0000 |
commit | 54444ec4c8bca23c60f2c348390d07b0b81fb010 (patch) | |
tree | c02d58a5a260126f3c9e89ecab6d81b879c0b80a /channels/chan_console.c | |
parent | ca2fd8b4d69cb10c1b7eced843e4a896a1b2a7d9 (diff) |
List which devices are inputs and outputs in "console list devices"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_console.c')
-rw-r--r-- | channels/chan_console.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c index b14e797ac..38bd3e61c 100644 --- 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) |