diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-13 15:12:08 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-13 15:12:08 +0000 |
commit | d742c2a85dfca39e3afafb62b290e8bd2d17065a (patch) | |
tree | 5ca0e0ff9f0cd4126c5d62fad7260918617b7f20 /main/pbx.c | |
parent | 69996e29bdaa7402bd27b0fb33088e4060921c97 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@206126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index ff21f551e..b3a448214 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)); |