[asterisk-users] Variables are empty after Redirecting a channel
Igor Dvorzhak
idmedb at gmail.com
Fri Feb 21 08:08:52 CST 2014
Sorry there is a mistake, actually I don't redirect executing channel:
exten => s,n,ChannelRedirect(${CHANNEL_TO_REDIRECT},context_2,AMD,1)
I can't use Goto because the ${CHANNEL_TO_REDIRECT} is active channel and
Goto drops (hangs-up) it.
So is there a way to pass variable to the target context after
ChannelRedirect?
Thanks,
Igor
On Thu, Feb 20, 2014 at 2:37 PM, Joshua Colp <jcolp at digium.com> wrote:
>
> You should be using Goto here instead of ChannelRedirect, since you are
> redirecting the channel which is executing ChannelRedirect (that
> slightly made my head hurt). Switching should also make the variable
> work as you desire.
>
> Cheers,
>
> --
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140221/8c26ca47/attachment.html>
More information about the asterisk-users
mailing list