aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authordbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-16 18:06:42 +0000
committerdbrooks <dbrooks@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-16 18:06:42 +0000
commit5bc9c2a0b5b5f9757cbec9db82697a53f54f6d28 (patch)
tree21d69e76aba2af4aade6f4f70f0bfbfbc23a9e77 /main/pbx.c
parent2a3ca4e99f068180f40f8d4cba7c887804acf8a5 (diff)
Merged revisions 218867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r218867 | dbrooks | 2009-09-16 13:00:45 -0500 (Wed, 16 Sep 2009) | 13 lines Fixes CID pattern matching behavior to mirror that of extension pattern matching. Pattern matching for extensions uses a type of scoring system, giving values for specificity to each character in the pattern. Unfortunately, this is done character by character, in order. This does lead to some less specific patterns being first in line for matching, but it will usually get the job done. This patch merely brings CID matching to the same level as extension matching. This patch does not attempt to tackle the problem shared by extension matching. (closes issue #14708) Reported by: klaus3000 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@218868 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index c6e4c1bce..9b349da15 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -8025,7 +8025,7 @@ static int ast_add_extension2_lockopt(struct ast_context *con,
else if (e->matchcid && !tmp->matchcid)
res = -1;
else
- res = strcasecmp(e->cidmatch, tmp->cidmatch);
+ res = ext_cmp(e->cidmatch, tmp->cidmatch);
}
if (res >= 0)
break;