[asterisk-bugs] [Asterisk 0014708]: CID matching is wrong

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 16 13:02:27 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14708 
====================================================================== 
Reported By:                klaus3000
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   14708
Category:                   Core/PBX
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Target Version:             1.4.28
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-20 06:14 CDT
Last Modified:              2009-09-16 13:02 CDT
====================================================================== 
Summary:                    CID matching is wrong
Description: 
Hi!

When using CID matching in extensions.conf/ael it uses a wrong matching
algorithm:

E.g. CallerID = 699111600
  exten => s/_699.,1,NoOp(bad)
  exten => s/_6991116.,1,NoOp(good)

This will use "bad" although it should match "good" (like the normal
extension matching algorithm does)
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014702 [patch] debugging CID matching
====================================================================== 

---------------------------------------------------------------------- 
 (0110820) svnbot (reporter) - 2009-09-16 13:02
 https://issues.asterisk.org/view.php?id=14708#c110820 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 218867

U   branches/1.4/main/pbx.c

------------------------------------------------------------------------
r218867 | dbrooks | 2009-09-16 13:02:27 -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 https://issues.asterisk.org/view.php?id=14708)
Reported by: klaus3000

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=218867 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-16 13:02 svnbot         Checkin                                      
2009-09-16 13:02 svnbot         Note Added: 0110820                          
======================================================================




More information about the asterisk-bugs mailing list