aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 20:03:52 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 20:03:52 +0000
commitd681ea85987a742eaa276d37b06ba2052c0a5cd0 (patch)
tree308ee6f2133ae396d68158303973f1ede619ead0 /pbx.c
parent50e6d4adb9729d43f8382eb30fbcb99cf9079f85 (diff)
oops, missing ! in matchcid...
this should fix bug #7142 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26989 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 12229a7b1..c5367943a 100644
--- a/pbx.c
+++ b/pbx.c
@@ -950,7 +950,7 @@ static struct ast_exten *pbx_find_extension(struct ast_channel *chan,
int match = extension_match_core(eroot->exten, exten, action);
/* 0 on fail, 1 on match, 2 on earlymatch */
- if (!match || (eroot->matchcid && matchcid(eroot->cidmatch, callerid)))
+ if (!match || (eroot->matchcid && !matchcid(eroot->cidmatch, callerid)))
continue; /* keep trying */
if (match == 2 && action == E_MATCHMORE) {
/* We match an extension ending in '!'.