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>
<br>-MC<br><br><div class="gmail_quote">On Sun, Jun 6, 2010 at 11:55 AM, stephen at stephenjc <span dir="ltr">&lt;<a href="mailto:stephen@stephenjc.com">stephen@stephenjc.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;">
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>_______________________________________________<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>