Hi!

Three notes:

* as others have already mentioned: personally I would not Dial() from 
within AGI using EXEC, but rather set extension and context and then let 
the dialplan handle the Dial, and therefore complete that AGI before the 
Dial; then possibly run another AGI after the call in the h extension 
(even if that might not scale so well it is usually just fine).

* the second call leg is already gone when call control returns to your 
AGI, that is why you cannot read its variables. The only way is to use 
your M() Macro to store the value you are interested in, either by 
putting it into the CDR(userfield), or by using the SHARED() function 
(there is a backport for Asterisk 1.4) that can export the data to the 
originating channel.

* you need to do a GET VARIABLE in your AGI, not sure if this works 
flawlessly with the CHANNEL variables though

Philipp


-- 
_____________________________________________________________________
-- 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

Reply via email to