[asterisk-dev] [design] Matching algorithm

Tony Mountifield tony at softins.clara.co.uk
Tue Jun 3 13:37:03 CDT 2008


In article <484581C8.3090106 at digium.com>,
Russell Bryant <russell at digium.com> wrote:
> Jared Smith wrote:
> > On Tue, 2008-06-03 at 16:33 +0000, Tony Mountifield wrote:
> >> So my preference would be for only upper case N, X and Z to be special,
> >> and lower case to be literal characters. I don't know how many Asterisk
> >> users do _nxxnxxxxxx instead of _NXXNXXXXXX
> > 
> > Unfortunately, I know from experience that a _very large_ number of
> > people are using lower-case _nxxnxxxxxx for pattern matching, and so
> > even though I'd personally like to have only allowed upper-case letters
> > from the beginning, I think we'd be doing users in general a big
> > disservice by changing things at this point.  Isn't hindsight a
> > wonderful thing?
> > 
> 
> Yikes.  If _that_ is the case, then fine.  Make them treated the same way.
> 
> Basically, I think they should (1) both be special and treated the same, 
> or (2) only treat uppercase as special.
> 
> In an ideal world, I choose #2. In reality, I choose #1, because I don't 
> want to break more dialplans that we have to.

Fine, if that's the case, then I agree #2 would be too big a change.
And thanks to Lief for the _mai[n]-X. trick. I hadn't thought of that one.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list