[asterisk-dev] [Code Review] 44297: config: Add option to NOT preserve the effective context when changing a template

Olivier oza.4h07 at gmail.com
Wed Jan 28 03:48:22 CST 2015


Hello,

Reading back this thread which enhances templating behaviour, I would
like to ask if the same kind of improvement could be looked at with
setvar statements in config files.

If I'm not mistaken (I didn't checked with Asterisk 13) , when the
following is applied, variable foo is valued to a somehow surprising
"ON OFF" where I would expect a simple OFF value.

[foo](!)
setvar=foo=ON
setglobvar=bar=ON

[bar](foo)
setvar=foo=OFF
setglobvar=bar=OFF


Maybe a new keyword (setglobvar in the above example) could introduce
desired behaviour (with bar valued to OFF) ?

Thoughts ?

Regards



More information about the asterisk-dev mailing list