Re: [asterisk-users] Re: channel variable

2006-10-10 Thread Leif Madsen
On 8/24/06, Tony Mountifield [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], unplug [EMAIL PROTECTED] 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

[asterisk-users] Re: channel variable

2006-08-24 Thread Tony Mountifield
In article [EMAIL PROTECTED], unplug [EMAIL PROTECTED] wrote: Hi, I have set some variable in a call. Set(testmode=1) For some reason, such as forward the call, the follow command called. Dial(Local/1234567) It will go through the dial plan again but the value of variable testmode

Re: [asterisk-users] Re: channel variable

2006-08-24 Thread unplug
Do you mean it is a global variable instead of channel variable? Try using Set(__testmode=1), but still refer to it as ${testmode}. The __ tells Asterisk to propagate the variable to created channels. Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play:

[asterisk-users] Re: channel variable

2006-08-24 Thread Tony Mountifield
In article [EMAIL PROTECTED], unplug [EMAIL PROTECTED] 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?