Javascript has it'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"><<a href="mailto:mfedyk@mikefedyk.com">mfedyk@mikefedyk.com</a>></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't script abuse?<br>
<br>
On 5/5/09, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> You should rule out the network problems first, which sound more likely.<br>
><br>
> you can reduce the overuse of JS if you transfer the call to a regular<br>
> extension with a dynamic regex.<br>
><br>
> session.execute("transfer", "conf-xyz");<br>
><br>
> then make a regex in your xml dialplan to pick up ^conf-(.*) and execute<br>
> conference $1<br>
><br>
><br>
> On Tue, May 5, 2009 at 9:48 AM, Stephen Crosby <<a href="mailto:stevecrozz@gmail.com">stevecrozz@gmail.com</a>> wrote:<br>
><br>
>> Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).<br>
>><br>
>> --Stephen<br>
>><br>
>><br>
>> On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby<br>
>> <<a href="mailto:stevecrozz@gmail.com">stevecrozz@gmail.com</a>>wrote:<br>
>><br>
>>> I know I'm not on svn trunk, but this is a production server and it's<br>
>>> just<br>
>>> not feasible to update it constantly. I can update it though if you think<br>
>>> I<br>
>>> need to. I am routing callers to the conference app with javascript like<br>
>>> this:<br>
>>> session.execute("conference", xyz);<br>
>>> Can you tell me more about the problems I could have?<br>
>>><br>
>>> The machine running freeswitch has 1024MB memory and I'm not sure about<br>
>>> the CPU since its a VPS.<br>
>>><br>
>>> --Stephen<br>
>>><br>
>>> On Tue, May 5, 2009 at 3:49 AM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
>>><br>
>>>> First off you're not on SVN trunk secondly Are you executing the<br>
>>>> conference app inside your js file? If so then there could be the<br>
>>>> problem!<br>
>>>> You have also forgotten to include anything about Distro, OS, CPU and<br>
>>>> Memory.<br>
>>>> /b<br>
>>>><br>
>>>> On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:<br>
>>>><br>
>>>> We had our first big issues with our freeswitch system today. During at<br>
>>>> least 2 conferences, audio became jittery and there were three occasions<br>
>>>> where everyone was dropped from a conference. Even so, conference<br>
>>>> recording<br>
>>>> was not interrupted, and the freeswitch debug log doesn't show anything<br>
>>>> unusual.<br>
>>>><br>
>>>> Our hardware monitoring software doesn't show any kind of unusual<br>
>>>> resources usage, and our web host claims there were no outages during<br>
>>>> the<br>
>>>> time when we were experiencing problems.<br>
>>>><br>
>>>> We're currently running revision 12259.<br>
>>>><br>
>>>> How should I proceed in diagnosing this issue?<br>
>>>><br>
>>>> --Stephen<br>
>>>><br>
>>>><br>
>>>> Brian West<br>
>>>> <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>
>>>><br>
>>>> -- Meet us at ClueCon! <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>>><br>
>>>><br>
>>>><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>
>>>><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>
>><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
><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>