[Asterisk-Users] context wide variable scope

Steven Critchfield critch at basesys.com
Fri Jan 14 13:06:59 MST 2005


On Fri, 2005-01-14 at 14:13 -0500, Jeremy Hinton wrote:
> 	Maybe i missed this somewhere, but is it possible to define a variable 
> with a scope of the current context? I know i can define a system wide 
> variable, and i can define one that is valid for the duration of the 
> channel, but is it possible to define a variable that comes into scope 
> for every channel that comes into a context? I don't think so, but i 
> wanted to make sure.

You can if you use the DB functions, kind of. If you could better
describe an example of your problem, there may be better/other solutions
for you to use.  
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list