[asterisk-dev] case sensitivity with global variables

Olle E. Johansson oej at edvina.net
Wed Jun 16 08:11:52 CDT 2010


16 jun 2010 kl. 10.11 skrev Tilghman Lesher:

> On Wednesday 16 June 2010 01:38:45 Olle E. Johansson wrote:
>> 15 jun 2010 kl. 20.26 skrev Tilghman Lesher:
>>> On Tuesday 15 June 2010 12:57:19 Jared Smith wrote:
>>>> ----- Original Message -----
>>>> 
>>>>> When using GLOBAL() function it looks like that querying is case
>>>>> sensitive, but reading no (as it overwrites the existing variable).
>>>>> This is inconsistent with normal channel variables which are always
>>>>> case insensitive:
>>>> 
>>>> I was under the impression that Asterisk channel variables were always
>>>> case sensitive... Have I missed a change along the way?
>>> 
>>> As far as I know, both global and channel variables are supposed to be
>>> case- sensitive, other than a few DEPRECATED builtin variables that have
>>> now been largely replaced with dialplan functions.
>> 
>> Agree, but not with the DECPRECATED fact. Did Russell not change the policy
>> to "do not deprecate anything unless we have to". I don't think we have to
>> remove those variables and break a massive amount of dialplans out there.
> 
> No, we still deprecate things that we prefer people not to use.  The only
> major difference is that we will not schedule their removal, unless their
> presence meets one of a number of guidelines, such as a) security, b)
> difficulty of maintenance, or c) interference with a new feature.  Barring
> those reasons for removal, a deprecated item is free to remain forever.


Then I would suggest that we use a different terminology for these
not recommended functions. DEPRECATED suggests according to our
history that we will remove them.


/O





More information about the asterisk-dev mailing list