Javascript has it&#39;s own issues. Tony wrote FreeSWITCH, including the dialplan parser. The less you can use JS, especially in a high-volume environment, the better. The happy medium is to use Lua. It is small, lightweight, easy, and designed to be embedded. Tony has had 3000 Lua session up simultaneously with no issues. I guarantee you that JS would have a meltdown at a fraction of that volume...<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 9:32 AM, Mike Fedyk <span dir="ltr">&lt;<a href="mailto:mfedyk@mikefedyk.com">mfedyk@mikefedyk.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Why is initiating a conference from a dial plan entry better than<br>
directly from an internal script?  Is there a page that details what<br>
is and isn&#39;t script abuse?<br>
<br>
On 5/5/09, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; wrote:<br>
&gt; You should rule out the network problems first, which sound more likely.<br>
&gt;<br>
&gt; you can reduce the overuse of JS if you transfer the call to a regular<br>
&gt; extension with a dynamic regex.<br>
&gt;<br>
&gt; session.execute(&quot;transfer&quot;, &quot;conf-xyz&quot;);<br>
&gt;<br>
&gt; then make a regex in your xml dialplan to pick up ^conf-(.*) and execute<br>
&gt; conference $1<br>
&gt;<br>
&gt;<br>
&gt; On Tue, May 5, 2009 at 9:48 AM, Stephen Crosby &lt;<a href="mailto:stevecrozz@gmail.com">stevecrozz@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).<br>
&gt;&gt;<br>
&gt;&gt; --Stephen<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby<br>
&gt;&gt; &lt;<a href="mailto:stevecrozz@gmail.com">stevecrozz@gmail.com</a>&gt;wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I know I&#39;m not on svn trunk, but this is a production server and it&#39;s<br>
&gt;&gt;&gt; just<br>
&gt;&gt;&gt; not feasible to update it constantly. I can update it though if you think<br>
&gt;&gt;&gt; I<br>
&gt;&gt;&gt; need to. I am routing callers to the conference app with javascript like<br>
&gt;&gt;&gt; this:<br>
&gt;&gt;&gt; session.execute(&quot;conference&quot;, xyz);<br>
&gt;&gt;&gt; Can you tell me more about the problems I could have?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The machine running freeswitch has 1024MB memory and I&#39;m not sure about<br>
&gt;&gt;&gt; the CPU since its a VPS.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --Stephen<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, May 5, 2009 at 3:49 AM, Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; First off you&#39;re not on SVN trunk secondly Are you executing the<br>
&gt;&gt;&gt;&gt; conference app inside your js file?  If so then there could be the<br>
&gt;&gt;&gt;&gt; problem!<br>
&gt;&gt;&gt;&gt;  You have also forgotten to include anything about Distro, OS, CPU and<br>
&gt;&gt;&gt;&gt; Memory.<br>
&gt;&gt;&gt;&gt; /b<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; We had our first big issues with our freeswitch system today. During at<br>
&gt;&gt;&gt;&gt; least 2 conferences, audio became jittery and there were three occasions<br>
&gt;&gt;&gt;&gt; where everyone was dropped from a conference. Even so, conference<br>
&gt;&gt;&gt;&gt; recording<br>
&gt;&gt;&gt;&gt; was not interrupted, and the freeswitch debug log doesn&#39;t show anything<br>
&gt;&gt;&gt;&gt; unusual.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Our hardware monitoring software doesn&#39;t show any kind of unusual<br>
&gt;&gt;&gt;&gt; resources usage, and our web host claims there were no outages during<br>
&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt; time when we were experiencing problems.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; We&#39;re currently running revision 12259.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; How should I proceed in diagnosing this issue?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --Stephen<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;   Brian West<br>
&gt;&gt;&gt;&gt; <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -- Meet us at ClueCon!  <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> &lt;<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>&gt;<br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a>&lt;<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>&gt;<br>
&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> &lt;<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>&gt;<br>
&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a>&lt;<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>&gt;<br>

&gt; pstn:213-799-1400<br>
&gt;<br>
<br>
--<br>
Sent from my mobile device<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>
</blockquote></div><br>