Can it be done in the dial plan, and without knowing the UUID? <div><br></div><div>I&#39;m using the regular bind_meta_app and transfer in the feature dialplan. I need to set a special variable for my system when the actual transfer command is about to be executed in the dial plan on the a-leg.<br>
<br><div class="gmail_quote">On Wed, Mar 24, 2010 at 1:27 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Fri, Mar 19, 2010 at 6:01 AM, rentmycoder rentmycoder <span dir="ltr">&lt;<a href="mailto:rentmycoder@gmail.com" target="_blank">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><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>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>