oops, missing ! in matchcid...
authorLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 20:03:52 +0000 (20:03 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 20:03:52 +0000 (20:03 +0000)
this should fix bug #7142

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 12229a7..c536794 100644 (file)
--- 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 */
 
                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 '!'.
                        continue;       /* keep trying */
                if (match == 2 && action == E_MATCHMORE) {
                        /* We match an extension ending in '!'.