Thank you Keith, I&#39;ll try that as well and let you know.<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 9:51 AM, Keith Laaks <span dir="ltr">&lt;<a href="mailto:keithl@voxtelecom.co.za">keithl@voxtelecom.co.za</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p><span style="font-size:11.0pt;color:#1F497D">Hi Nicolas,</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">I wonder if session.execute( </span><span style="font-size:10.0pt;color:black">&quot;sched_broadcast&quot;”,
“+1 /path/file.wav aleg”) </span><span style="font-size:11.0pt;color:#1F497D">followed immediately by your ‘new
Session’ and ‘bridge’ would do the trick ?</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Not sure if/how “sched_broadcast” functions when the
call has not yet been bridged though…</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Let us know..</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Best Regards</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Keith</span></p>

<p><span style="font-size:10.0pt;color:black"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Nicolas
Brenner<br>
<b>Sent:</b> 30 July 2009 20:31<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> [Freeswitch-users] Async JS functions?</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p>Hi,<br>
<br>
I have a small JS script that calls a phonenumber, when the call is answered it
plays a wave file, then it calls a second phonenumber and bridges the calls. Is
it possible to make wave-playing async, so that the second call is generated as
soon as the first is picked up? Right now the wave file takes about 2 secs to
play, but I need to extend that time, and I don&#39;t want to delay the second
call.<br>
<br>
Thanks!<br>
<br>
Nicolas</p>

</div></div></div>

</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>