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 is nothing instead of 1.
> 
> How can I maintain the value of the variable in the above case?

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: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to