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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 16 14:42:29 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-03-20 06:14 CDT
Last Modified:              2009-09-16 14:42 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
====================================================================== 

---------------------------------------------------------------------- 
 (0110837) svnbot (reporter) - 2009-09-16 14:42
 https://issues.asterisk.org/view.php?id=14708#c110837 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 218938

_U  branches/1.6.2/
U   branches/1.6.2/main/pbx.c

------------------------------------------------------------------------
r218938 | dbrooks | 2009-09-16 14:42:28 -0500 (Wed, 16 Sep 2009) | 27
lines

Merged revisions 218868 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r218868 | dbrooks | 2009-09-16 13:06:42 -0500 (Wed, 16 Sep 2009) | 20
lines
  
  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 https://issues.asterisk.org/view.php?id=14708)
    Reported by: klaus3000
  ........
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-16 14:42 svnbot         Checkin                                      
2009-09-16 14:42 svnbot         Note Added: 0110837                          
======================================================================




More information about the asterisk-bugs mailing list