[asterisk-dev] Dialplan AGI with SIP channels blocking if AGI already running - parallellism not possible?

Matthew Jordan mjordan at digium.com
Wed Apr 3 12:49:33 CDT 2013


On 04/03/2013 12:43 PM, Johan Sandgren wrote:
> 
> Thanks for the suggestion Matt,
> It works on behalf of the blocking is gone! Yes, celebration!! 
> 
> But, variable transfer between contexts when using Originate doesn't seem to happen.
> I tried different ways of setting my variable (with and without __, lower and caps chars), still NULL when received. The debug output in asterisk doesn't show any copying taking place either, so guess it might not happen at all.
> 
> Just for comparison, I used Dial instead of Originate. The blocking is back, but the inherent variables (prefix __) are copied, and it shows in the debug output of asterisk.
> 
> Is this a limitation, or a bug perhaps?
> Any suggestions for how to transfer the needed variable between contexts using Originate is appreciated.
> 

That's my fault; I had forgotten that Originating doesn't create a child
channel but rather a new independent channel. Hence, variable
inheritance does not apply.

You can use the IMPORT function [1] to pull the channel variables from
the Message channel. You would want to do this before you Answer the
Local channel, so as to prevent the Message channel from being hung up.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_IMPORT


-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org





More information about the asterisk-dev mailing list