From 927901fdefddf71c89e8fdd5b17de709a7a8e55d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 2 Nov 2007 21:25:55 +0000 Subject: [PATCH] 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 --- main/cli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/cli.c b/main/cli.c index d454694dc0..2277dcaaad 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)",