[asterisk-dev] Variable Inheritance, Setting Channel Variables outside of current context

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed May 17 15:35:27 MST 2006


On Wednesday 17 May 2006 16:50, Evan Borgström wrote:
> 	This is off-topic of this discussion but since I was dealing with
> this earlier today I thought I'd bring it up here.
>
> >>   Once a Global variable is set, how do you "unset" that Global
> >> variable, in order to avoid overwriting and variable messyness?
> >
> > Setting it to an empty string effectively resets the value.
>
> 	Is this true for all variables?

Yes.

> I would call "SET VARIABLE SIPADDHEADER01 " from an AGI script

That doesn't do what you think.  The correct syntax is:
	SET VARIABLE SIPADDHEADER01 ""

-- 
Tilghman



More information about the asterisk-dev mailing list