summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-11-08 18:26:52 +0000
committerJoshua Colp <jcolp@digium.com>2006-11-08 18:26:52 +0000
commitc5780b19c8bd41878cc23f9e218fda157683986d (patch)
tree426421d237e235f94250adef943abc4fb7ca9d51 /main/pbx.c
parentaabf2ce6f0c3a5c3b0ec4926834e2f2723d290f2 (diff)
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
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index ee905976f..1ade4159b 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));