[asterisk-bugs] [Asterisk 0015421]: Serious problem in pattern matching

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 1 03:18:37 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15421 
====================================================================== 
Reported By:                jsmith
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15421
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.25 
Regression:                 Yes 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-29 14:45 CDT
Last Modified:              2009-09-01 03:18 CDT
====================================================================== 
Summary:                    Serious problem in pattern matching
Description: 
There appears to be a serious problem in the pattern matching in
Asterisk... for some reason, it thinks the following two extensions are
equivalent, when they're not.

exten => _N[2-4]X,1,NoOp(foo)
exten => _N[246]X,1,NoOp(bar)
====================================================================== 

---------------------------------------------------------------------- 
 (0109882) dant (reporter) - 2009-09-01 03:18
 https://issues.asterisk.org/view.php?id=15421#c109882 
---------------------------------------------------------------------- 
e.g.

[test]
exten => _1[4-6],1,NoOp(foo)
exten => _1[468],1,NoOp(bar)
exten => _1[468],n,NoOp(bar2)

> dialplan show test
[ Context 'test' created by 'pbx_config' ]
  '_1[4-6]' =>      1. NoOp(foo)                                 
[pbx_config]
                    2. NoOp(bar2)                                
[pbx_config]

-= 1 extension (2 priorities) in 1 context. =-

This is on trunk...

It seems to be that when a range and a list start with the same value and
contain the same number of values that it's considered equivalent...
e.g. 
[1-4] considered the same as [1789]
[2-4] considered the same as [289] 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-01 03:18 dant           Note Added: 0109882                          
======================================================================




More information about the asterisk-bugs mailing list