<br><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 6:01 AM, rentmycoder rentmycoder <span dir="ltr">&lt;<a href="mailto:rentmycoder@gmail.com">rentmycoder@gmail.com</a>&gt;</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>
&lt;action application=&quot;export&quot; data=&quot;nolocal:execute_on_answer=lua<br>
cc.lua extensions_answer ${uuid}&quot;/&gt;<br>
&lt;bridge ....&gt;<br>
<br>
from cc.lua I try:<br>
session:execute(&quot;export&quot;, &quot;foo=123&quot;);<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(&quot;uuid_setvar&quot;, a_leg_uuid .. &quot; &quot; .. chan_var .. &quot; &quot; .. chan_var_val)<br>
 <br>-MC<br></div></div><br>