[asterisk-users] Variables are empty after Redirecting a channel

Igor Dvorzhak idmedb at gmail.com
Thu Feb 20 04:24:14 CST 2014


I am using
Asterisk built by mockbuild @ buildvm-24.phx2.fedoraproject.org on
a x86_64 running Linux on 2013-01-18 19:52:25 UTC

How can I set variable in one context and then Redirect a channel to
another context and use variable there? The code below doesn't work, so
I've got empty VAR1 in context_2


exten => s,1,SET(__VAR1=VALUE1)
exten => s,n,ChannelRedirect(${CHANNEL},context_2,AMD,1)


exten => AMD,1,NoOp(VAR1: ${VAR1})

Thank you in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140220/fa3c9305/attachment.html>

More information about the asterisk-users mailing list