aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 14:32:32 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 14:32:32 +0000
commit7a570fc489379ad25272cc106bc3ddfddbfba9a2 (patch)
treef4d347e33fc551e19adf8ac68f1122409508db61 /channel.c
parentb10321244c838e9991682abc06d1ea22e7ba7e0e (diff)
make 'show channeltypes' list whether device state is supported (bug #4464)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5840 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channel.c b/channel.c
index d17c63e5f..3a3d1f983 100755
--- a/channel.c
+++ b/channel.c
@@ -81,16 +81,16 @@ AST_MUTEX_DEFINE_STATIC(chlock);
static int show_channeltypes(int fd, int argc, char *argv[])
{
-#define FORMAT "%-10.10s %-50.50s\n"
+#define FORMAT "%-10.10s %-50.50s %-12.12s\n"
struct chanlist *cl = backends;
- ast_cli(fd, FORMAT, "Type", "Description");
- ast_cli(fd, FORMAT, "----------", "-----------");
+ ast_cli(fd, FORMAT, "Type", "Description", "Devicestate");
+ ast_cli(fd, FORMAT, "----------", "-----------", "-----------");
if (ast_mutex_lock(&chlock)) {
ast_log(LOG_WARNING, "Unable to lock channel list\n");
return -1;
}
while (cl) {
- ast_cli(fd, FORMAT, cl->tech->type, cl->tech->description);
+ ast_cli(fd, FORMAT, cl->tech->type, cl->tech->description, (cl->tech->devicestate)?"yes":"no");
cl = cl->next;
}
ast_mutex_unlock(&chlock);