<div dir="ltr">Sorry there is a mistake, actually I don't redirect executing channel:<div><br></div><div>exten => s,n,ChannelRedirect(${CHANNEL_TO_REDIRECT},context_2,AMD,1)</div><div><br></div><div>I can't use Goto because the ${CHANNEL_TO_REDIRECT} is active channel and Goto drops (hangs-up) it.</div>
<div><br></div><div>So is there a way to pass variable to the target context after ChannelRedirect?</div><div><br></div><div>Thanks,</div><div>Igor<br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 2:37 PM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote: <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">You should be using Goto here instead of ChannelRedirect, since you are<br></div>
redirecting the channel which is executing ChannelRedirect (that<br>
slightly made my head hurt). Switching should also make the variable<br>
work as you desire.<br>
<br>
Cheers,<br>
<span class=""><font color="#888888"><br>
--<br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at:  <a href="http://www.digium.com" target="_blank">www.digium.com</a>  & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br></div></div>