Show the channel unique ID in the "show channel concise" output
authorRussell Bryant <russell@russellbryant.com>
Fri, 2 Nov 2007 21:25:55 +0000 (21:25 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 2 Nov 2007 21:25:55 +0000 (21:25 +0000)
(closes issue #11148, requested by falves11, patched by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88370 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index d454694..2277dca 100644 (file)
@@ -578,7 +578,7 @@ static char *handle_chanlist(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
 {
 #define FORMAT_STRING  "%-20.20s %-20.20s %-7.7s %-30.30s\n"
 #define FORMAT_STRING2 "%-20.20s %-20.20s %-7.7s %-30.30s\n"
-#define CONCISE_FORMAT_STRING  "%s!%s!%s!%d!%s!%s!%s!%s!%s!%d!%s!%s\n"
+#define CONCISE_FORMAT_STRING  "%s!%s!%s!%d!%s!%s!%s!%s!%s!%d!%s!%s!%s\n"
 #define VERBOSE_FORMAT_STRING  "%-20.20s %-20.20s %-16.16s %4d %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-20.20s\n"
 #define VERBOSE_FORMAT_STRING2 "%-20.20s %-20.20s %-16.16s %-4.4s %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-20.20s\n"
 
@@ -650,7 +650,8 @@ static char *handle_chanlist(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
                                        S_OR(c->accountcode, ""),
                                        c->amaflags, 
                                        durbuf,
-                                       bc ? bc->name : "(None)");
+                                       bc ? bc->name : "(None)",
+                                       c->uniqueid);
                        } else if (verbose) {
                                ast_cli(fd, VERBOSE_FORMAT_STRING, c->name, c->context, c->exten, c->priority, ast_state2str(c->_state),
                                        c->appl ? c->appl : "(None)",