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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 4 18:15:01 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17366 
====================================================================== 
Reported By:                murf
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17366
Category:                   PBX/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.38
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-10-04 18:15 CDT
====================================================================== 
Summary:                    [patch] 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.


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

---------------------------------------------------------------------- 
 (0127684) svnbot (reporter) - 2010-10-04 18:15
 https://issues.asterisk.org/view.php?id=17366#c127684 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 290254

U   branches/1.6.2/main/pbx.c
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-ntest10
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test1
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test19
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test2
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test3
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test4
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-test5
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-vtest13
U   branches/1.6.2/pbx/ael/ael-test/ref.ael-vtest17
U   branches/1.6.2/res/ael/pval.c

------------------------------------------------------------------------
r290254 | tilghman | 2010-10-04 18:15:00 -0500 (Mon, 04 Oct 2010) | 11
lines

Change new pattern matcher to regard dashes the same as the old pattern
matcher -- as visual candy to be ignored.

Also change the AEL parser to not generate dashes within extensions, as
those
dashes would be ignored.  Update the AEL tests to match this behavior.

(closes issue https://issues.asterisk.org/view.php?id=17366)
 Reported by: murf
 Patches: 
       20100727__issue17366.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-04 18:15 svnbot         Checkin                                      
2010-10-04 18:15 svnbot         Note Added: 0127684                          
======================================================================




More information about the asterisk-bugs mailing list