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 <[email protected]> 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
>
--
_____________________________________________________________________
-- 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