[Freeswitch-users] An extension with a javascript action can handle multiple concurrent calls?

Michael Collins msc at freeswitch.org
Wed Jun 8 20:03:39 MSD 2011


I've never ever had a Lua script crash, but I don't use LuaSQL or even the
dbh. However, Chad Phillips (IRC: hunmonk) uses Lua and dbh for the
JesterMail.

-MC

On Wed, Jun 8, 2011 at 8:40 AM, Sergey Okhapkin <sos at sokhapkin.dyndns.org>wrote:

> To me lua frequently crashes when multiple channels call lua interpreter at
> the same time. Even with trivial lua script which calls single select
> statement using dbh.
>
> On Wednesday 08 June 2011, Michael Collins wrote:
> > Yes, you'll have one js instance for each call. JS does not scale very
> > well, but if you want the ability to scale a lot then you should use Lua.
> >
> > -MC
> >
> > On Wed, Jun 8, 2011 at 8:30 AM, Yungwei Chen <yungwei at resolvity.com>
> wrote:
> > > Hi,
> > >
> > > I'm wondering if the following extension can handle multiple concurrent
> > > calls. Thanks.
> > >
> > >  <extension name="test">
> > >
> > >        <condition field="destination_number" expression="^9912$">
> > >
> > >                <action application="answer"/>
> > >                <action application="javascript" data="test.js"/>
> > >
> > >        </condition>
> > >
> > >  </extension>
> > >
> > > _______________________________________________
> > > FreeSWITCH-users mailing list
> > > FreeSWITCH-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110608/a348095b/attachment.html 


More information about the FreeSWITCH-users mailing list