<span class="Apple-style-span" style="font-family: &#39;Courier New&#39;, courier, monaco, monospace, sans-serif; font-size: 13px; "><div>Thanks Michael for the reply.</div><div>Here&#39;s the pastebin link: <a href="http://pastebin.freeswitch.org/12084">http://pastebin.freeswitch.org/12084</a></div>
<div><br></div></span><br><div class="gmail_quote">On Sun, Feb 7, 2010 at 9:50 PM, Michael S  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;">
<div bgcolor="#FFFFFF"><div>Pastebin a debug log so we can see what is happening when the script runs. </div><div><br></div><div>-MC<br><br>Sent from my iPhone</div><div><div></div><div class="h5"><div><br>On Feb 7, 2010, at 8:31 PM, Adam Wilt &lt;<a href="mailto:wiltingtree@gmail.com" target="_blank">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&#39;t bridge.</div>


<div>I&#39;ve tried intercept, but I don&#39;t understand how it should be used; nothing I try seems to work.</div><div>Here&#39;s what I have:</div><div><br></div><div><div><font color="#000099">function bridge_calls(session,api,b_leg_uuid, call_len)</font></div>

<div><font color="#000099">  session:setAutoHangup(false)</font></div><div><font color="#000099">  session:execute(&quot;sched_hangup&quot;,&quot;+&quot; .. tostring(call_len) .. &quot; &quot; .. tostring(session.uuid))</font></div>

<div><font color="#000099">  session:execute(&quot;set&quot;,&quot;continue_on_fail=true&quot;)</font></div><div><font color="#000099">  api:executeString(&quot;intercept -bleg &quot; .. tostring(b_leg_uuid))</font></div>

<div><font color="#000099">  api:executeString(&quot;uuid_bridge &quot; .. tostring(session.uuid) .. &quot; &quot; .. tostring(b_leg_uuid))</font></div><div><font color="#000099">end</font></div>
</div><div><br></div><div><div>I&#39;d really appreciate any help.</div>
<div><br></div><div>Thanks,</div><div>Adam</div><div><br></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div><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>