From: Joshua Colp Date: Wed, 8 Nov 2006 18:26:52 +0000 (+0000) Subject: Display CID matching information when using dialplan show. (issue #8279 reported... X-Git-Tag: 1.6.0-beta1~3^2~4074 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5780b19c8bd41878cc23f9e218fda157683986d;p=thirdparty%2Fasterisk.git Display CID matching information when using dialplan show. (issue #8279 reported by caio1982) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47335 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/CHANGES b/CHANGES index bc2cade16e..586555f083 100644 --- a/CHANGES +++ b/CHANGES @@ -58,3 +58,4 @@ Changes since Asterisk 1.4-beta was branched: * Added QUEUE_VARIABLES function to set queue variables added setqueuevar and setqueueentryvar options for each queue, see queues.conf.sample for details. * Brazilian Portuguese (pt-BR) in VM, and say.c was added via patch from cfassoni. + * CID matching information is now shown when doing 'dialplan show'. diff --git a/main/pbx.c b/main/pbx.c index ee905976fb..1ade4159b6 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3272,7 +3272,10 @@ static int show_dialplan_helper(int fd, const char *context, const char *exten, dpc->total_prio++; /* write extension name and first peer */ - snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e)); + if (e->matchcid) + snprintf(buf, sizeof(buf), "'%s' (CID match '%s') => ", ast_get_extension_name(e), e->cidmatch); + else + snprintf(buf, sizeof(buf), "'%s' =>", ast_get_extension_name(e)); print_ext(e, buf2, sizeof(buf2));