From: Russell Bryant Date: Mon, 13 Jul 2009 15:12:08 +0000 (+0000) Subject: Print CID match in "show dialplan". X-Git-Tag: 1.4.26-rc6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df4d75f4a71b289a3f032c47ac2764f04f8aca6a;p=thirdparty%2Fasterisk.git Print CID match in "show dialplan". (closes issue #14702) Reported by: klaus3000 Patches: patch_asterisk_1.4.23_CID_matching.txt uploaded by klaus3000 (license 65) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@206126 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index ff21f551e5..b3a4482149 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3549,7 +3549,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));