[asterisk-dev] [design] Matching algorithm

Russell Bryant russell at digium.com
Tue Jun 3 12:39:20 CDT 2008


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.

-- 
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.



More information about the asterisk-dev mailing list