<html><body bgcolor="#FFFFFF"><div>Pastebin a debug log so we can see what is happening when the script runs.&nbsp;</div><div><br></div><div>-MC<br><br>Sent from my iPhone</div><div><br>On Feb 7, 2010, at 8:31 PM, Adam Wilt &lt;<a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi. I have two sessions running in two separate Lua scripts, and I want to bridge them so that the bridged call is being controlled by the first (a-leg) script.<div>If I simply use uuid_bridge, I get no error but the calls don't bridge.</div>

<div>I've tried intercept, but I don't understand how it should be used; nothing I try seems to work.</div><div>Here's what I have:</div><div><br></div><div><div><font class="Apple-style-span" color="#000099">function bridge_calls(session,api,b_leg_uuid, call_len)</font></div>
<div><font class="Apple-style-span" color="#000099">&nbsp;&nbsp;session:setAutoHangup(false)</font></div><div><font class="Apple-style-span" color="#000099">&nbsp;&nbsp;session:execute("sched_hangup","+" .. tostring(call_len) .. " " .. tostring(session.uuid))</font></div>
<div><font class="Apple-style-span" color="#000099">&nbsp;&nbsp;session:execute("set","continue_on_fail=true")</font></div><div><font class="Apple-style-span" color="#000099">&nbsp;&nbsp;api:executeString("intercept -bleg " .. tostring(b_leg_uuid))</font></div>
<div><font class="Apple-style-span" color="#000099">&nbsp;&nbsp;api:executeString("uuid_bridge " .. tostring(session.uuid) .. " " .. tostring(b_leg_uuid))</font></div><div><font class="Apple-style-span" color="#000099">end</font></div>
</div><div><br></div><div><div>I'd really appreciate any help.</div>
<div><br></div><div>Thanks,</div><div>Adam</div><div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>