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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 30 18:02:56 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-30 18:02 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.


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

---------------------------------------------------------------------- 
 (0124120) murf (manager) - 2010-06-30 18:02
 https://issues.asterisk.org/view.php?id=17366#c124120 
---------------------------------------------------------------------- 
Yes, I dimly remember that little feature of pattern matching now. And that
means that the error isn't in the standard pattern matcher, it's in the
fast pattern matcher and the AEL code generator.

I'll see what I can do to upgrade those two to follow this convention. In
the AEL, it'll simply be a matter of using the _ instead of - in generated
extension names. In the fast pattern matcher its got to skip the dashes in
the patterns and the strings, just like the standard algorithm does.

Oh, joy! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-30 18:02 murf           Note Added: 0124120                          
======================================================================




More information about the asterisk-bugs mailing list