summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-11-02 21:25:55 +0000
committerRussell Bryant <russell@russellbryant.com>2007-11-02 21:25:55 +0000
commit927901fdefddf71c89e8fdd5b17de709a7a8e55d (patch)
tree627e5ebc925f247aa37ef14411be4c99ab994197 /main
parent267683eb1930ec960340b19e4b459b65338503da (diff)
Show the channel unique ID in the "show channel concise" output
(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
Diffstat (limited to 'main')
-rw-r--r--main/cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/cli.c b/main/cli.c
index d454694dc..2277dcaaa 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -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)",