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

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Apr 1 14:57:45 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
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 14:57 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.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 04-01-08 14:57  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 112289

U   trunk/main/pbx.c

------------------------------------------------------------------------
r112289 | murf | 2008-04-01 14:57:37 -0500 (Tue, 01 Apr 2008) | 21 lines

(closes issue http://bugs.digium.com/view.php?id=12298)
Reported by: falves11
Patches:
      12298.patch1 uploaded by murf (license 17)
Tested by: murf

I have hopes that the changes made over the last few days will
finalize and solidify this code. While there are bound to be 
small tweaks still needed, I feel that the job (at last) is
somewhat completed. Finally, I had a chance to comprehend how
the scoring of extension patterns was done in the previous
version, and I've come very close to using the exact same
criteria in the new pattern matching code. The left-right
sorting is now replicated in the trie structure itself, such
that the first match found will the 'best' match. Compared
the results against 1.4 for several extensions. Replicated
falves11's setup and it works. Used some devious patterns
provided by jsmith, supplemented with a few of my own.
Looks good.


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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-01-08 14:57  svnbot         Note Added: 0084890                          
04-01-08 14:57  svnbot         Status                   ready for testing =>
assigned
======================================================================




More information about the asterisk-bugs mailing list