[asterisk-bugs] [Asterisk 0017366]: strange extension pattern matching

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 24 11:15:47 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17366 
====================================================================== 
Reported By:                murf
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17366
Category:                   PBX/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-1517 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-20 12:57 CDT
Last Modified:              2010-06-24 11:15 CDT
====================================================================== 
Summary:                    strange extension pattern matching
Description: 
Maybe I'm just hallucinating, but if I goto(mysw-17-3,label)  and have
these extensions defined:

_mysw-17-.
_mysw-1-.
mysw-17-
mysw-17-*
mysw-17-2
mysw-17-1
s

The last match I would expect would be the second item in the list above,
but that's the one that is chosen.


====================================================================== 

---------------------------------------------------------------------- 
 (0123826) tilghman (administrator) - 2010-06-24 11:15
 https://issues.asterisk.org/view.php?id=17366#c123826 
---------------------------------------------------------------------- 
You should understand that in pattern matches, the "-" character is ignored
as a separator character.  This is so that you can do "_NXX-NXX-XXXX" for
readability. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-24 11:15 tilghman       Note Added: 0123826                          
======================================================================




More information about the asterisk-bugs mailing list