Have you had any success with this bridge code?<div>Because I&#39;ve had the same problem and my solution was:</div><div><br></div><div>callee_dialstring = &quot;{ignore_early_media=true,leg=2}sofia/user/XXX&quot;;</div><div>
session.execute(&#39;bridge&#39;, callee_dialstring);<br><br></div><div>The problem here is that you have to establish the first leg before you can dial the second number. </div><div><br></div><div>Regards,</div><div>--</div>
<div>Samuel Macedo</div><div><br><div class="gmail_quote">On 7 June 2010 18:58, 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;">
I take it that this js is being called from the dialplan? If so then do what you need to do with outsession before you bridge it. Or consider using ESL and making a socket-based control program where you have much more flexibility...<br>
<font color="#888888">
<br>-MC<br><br></font><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Jun 6, 2010 at 11:55 AM, stephen at stephenjc <span dir="ltr">&lt;<a href="mailto:stephen@stephenjc.com" target="_blank">stephen@stephenjc.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">
I have the following code, and after the bridge the javascript seems to stop.<br><br> outsession = new Session(&quot;{ringback=\&#39;%(2000,4000,440.0,480.0)\&#39;,instant_ringback=true,ignore_early_media=false}sofia/gateway/&quot; + providerhash[&quot;providername0&quot;] + &quot;/XXXXXXXXXXXX&quot;);<br>


bridge(session,outsession);<br>while(outsession.ready())<br>{<br>console_log(&quot;notice&quot;,&quot;ping&quot;);<br>}<br><br>I am looking to manage the b leg, should i use execute_on_answer instead? or is there a way to make the code continue after the bridge.<br>


<br clear="all">Thanks,<br>Stephen C<br>-All of my email addresses go to the same place<br>-Save Paper, think before you print<br><br>
<br></div></div><div class="im">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></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>