[asterisk-bugs] [Asterisk 0016903]: [patch] Incorrect pattern specificity in new dial pattern functions

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 9 20:49:26 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16903 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   16903
Category:                   PBX/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-969 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-25 09:40 CST
Last Modified:              2010-09-09 20:49 CDT
====================================================================== 
Summary:                    [patch] Incorrect pattern specificity in new dial
pattern functions
Description: 
An error appears to have crept in when copying the specificity of X, Z and
N wildcards from the old dial pattern matching functions to the new ones.

In the old functions the specificity is:
X : 0x0A30
Z : 0x0931
N : 0x0832

which is the same as
[0-9] : 0x0A30
[1-9] : 0x0931
[2-9] : 0x0832

but in the new functions the specificity is:
X : 0x0A00
Z : 0x0901
N : 0x0802
====================================================================== 

---------------------------------------------------------------------- 
 (0126802) svnbot (reporter) - 2010-09-09 20:49
 https://issues.asterisk.org/view.php?id=16903#c126802 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 285711

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

------------------------------------------------------------------------
r285711 | bbryant | 2010-09-09 20:49:25 -0500 (Thu, 09 Sep 2010) | 15
lines

Merged revisions 285710 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r285710 | bbryant | 2010-09-09 14:50:13 -0400 (Thu, 09 Sep 2010) | 8
lines
  
  Fixes an issue with dialplan pattern matching where the specificity for
pattern ranges and pattern special characters was inconsistent.
  
  (closes issue https://issues.asterisk.org/view.php?id=16903)
  Reported by: Nick_Lewis
  Patches: 
        pbx.c-specificity.patch uploaded by Nick Lewis (license 657)
  Tested by: Nick_Lewis
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-09 20:49 svnbot         Checkin                                      
2010-09-09 20:49 svnbot         Note Added: 0126802                          
======================================================================




More information about the asterisk-bugs mailing list