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
This commit is contained in:
Joshua Colp
2006-11-08 18:26:52 +00:00
parent aabf2ce6f0
commit c5780b19c8
2 changed files with 5 additions and 1 deletions

View File

@@ -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));