24 Mar
2010
24 Mar
'10
12:27 a.m.
On Fri, Mar 19, 2010 at 6:01 AM, rentmycoder rentmycoder < rentmycoder@gmail.com> wrote:
Hi guys, Freeswitch Rocks!
Does anybody know how to export variables from the b-leg to a-leg... I start a bridge from lua on an outgoing gateway and on the answer of the b-leg I would like to set a variable on the a-leg...
<action application="export" data="nolocal:execute_on_answer=lua cc.lua extensions_answer ${uuid}"/> <bridge ....>
from cc.lua I try: session:execute("export", "foo=123");
but no success... any hint?
Sorry, I meant to discuss this earlier. If you know the uuid of the A leg then just use uuid_setvar API: api = freeswitch.API(); res = api:execute("uuid_setvar", a_leg_uuid .. " " .. chan_var .. " " .. chan_var_val) -MC