<br><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 6:01 AM, rentmycoder rentmycoder <span dir="ltr"><<a href="mailto:rentmycoder@gmail.com">rentmycoder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi guys,<br>
Freeswitch Rocks!<br>
<br>
Does anybody know how to export variables from the b-leg to a-leg...<br>
I start a bridge from lua on an outgoing gateway and on the answer of<br>
the b-leg I would like to set a variable on the a-leg...<br>
<br>
<action application="export" data="nolocal:execute_on_answer=lua<br>
cc.lua extensions_answer ${uuid}"/><br>
<bridge ....><br>
<br>
from cc.lua I try:<br>
session:execute("export", "foo=123");<br>
<br>
but no success...<br>
any hint?<br></blockquote><div><br>Sorry, I meant to discuss this earlier. If you know the uuid of the A leg then just use uuid_setvar API:<br><br>api = freeswitch.API();<br>res = api:execute("uuid_setvar", a_leg_uuid .. " " .. chan_var .. " " .. chan_var_val)<br>
<br>-MC<br></div></div><br>