[asterisk-bugs] [Asterisk 0012298]: The new pattern matching does not work

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Apr 1 11:37:28 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12298 
====================================================================== 
Reported By:                falves11
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   12298
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 110615 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-26-2008 00:48 CDT
Last Modified:              04-01-2008 11:37 CDT
====================================================================== 
Summary:                    The new pattern matching does not work
Description: 
I have a lot of extensions, several thousands, and therefore I decided to
use the new patter-matching. It does not work at all. I send a call to my
cell at 19544447408, and it gets rejected with "not found". Please see the
dialplan and the SIP trace.
====================================================================== 

---------------------------------------------------------------------- 
 murf - 04-01-08 11:37  
---------------------------------------------------------------------- 
falves--
I have re-engineered the new pattern matcher to better handle the '.'
wildcards, cleared up a few bugs, made sure it considered all possible
patterns, etc. Then I upgraded the matching code to use pretty much the
same exact scoring algorithm that the old(current) matcher did, and added
code to 'sort' the pattern trie, and then modified the find_exten to quit
after the first (now first=best) match. It seems to work, I have more
testing to do, but if you want to test in your environment, I've got the
patch attached to this bug (see above). If you can try it out, add a note
to this bug of problems/success/failure.  The new pattern matcher should
now almost exactly match the behavior of the old one, except it runs a lot
faster on big dialplans, of course. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-01-08 11:37  murf           Note Added: 0084852                          
======================================================================




More information about the asterisk-bugs mailing list