[asterisk-users] Re: channel variable

Tony Mountifield tony at softins.clara.co.uk
Thu Aug 24 09:14:31 MST 2006


In article <6fbb529e0608240234x32c224ax37760dd5b989b594 at mail.gmail.com>,
unplug <maillisting at gmail.com> wrote:
> Tony Mountifield wrote:
> >
> > Try using Set(__testmode=1), but still refer to it as ${testmode}.
> >
> > The __ tells Asterisk to propagate the variable to created channels.
> 
> Do you mean it is a global variable instead of channel variable?

No, it is a channel variable. The __ on the beginning means it will be
inherited by any channels created from the channel it was set on.

See the section called "Inheritance of Channel Variables" on
http://www.voip-info.org/wiki/view/Asterisk+variables

In fact you will find that there is a LOT of useful info on that site.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list