[asterisk-dev] case sensitivity with global variables
Klaus Darilion
klaus.mailinglists at pernau.at
Tue Jun 15 07:49:10 CDT 2010
Hi!
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:
Tested on 1.6.2.7:
Set(FOO=BAR);
Verbose(${FOO}); -> BAR
Verbose(${foo}); -> BAR
Set(foo=bar);
Verbose(${FOO}); -> bar
Verbose(${foo}); -> bar
Set(GLOBAL(FOO)=BAR);
Verbose(${GLOBAL(FOO)}); -> BAR
Verbose(${GLOBAL(foo)}); -> (empty)
Set(GLOBAL(foo)=bar);
Verbose(${GLOBAL(FOO)}); -> (empty)
Verbose(${GLOBAL(foo)}); -> bar
Is this a bug that should be fixed (then I will file a bug report) or is
this by design?
regards
Klaus
More information about the asterisk-dev
mailing list