[asterisk-commits] russell: trunk r99009 - /trunk/channels/chan_console.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 17 17:21:31 CST 2008
Author: russell
Date: Thu Jan 17 17:21:30 2008
New Revision: 99009
URL: http://svn.digium.com/view/asterisk?view=rev&rev=99009
Log:
List which devices are inputs and outputs in "console list devices"
Modified:
trunk/channels/chan_console.c
Modified: trunk/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_console.c?view=diff&rev=99009&r1=99008&r2=99009
==============================================================================
--- trunk/channels/chan_console.c (original)
+++ trunk/channels/chan_console.c Thu Jan 17 17:21:30 2008
@@ -801,7 +801,9 @@
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)
More information about the asterisk-commits
mailing list