[Freeswitch-users] which language to implement dial plans in?
avi at avimarcus.net
Fri Feb 18 13:37:41 MSK 2011
mod_python, cool. I've heard lua has a very low overhead, but what about
mod_python (or PHP ESL)?
I'd imagine the script would have to be left "running" until the call
mod_python seems pretty well fleshed out...
On Fri, Feb 18, 2011 at 11:07 AM, Steven Ayre <steveayre at gmail.com> wrote:
> C is faster, but it's probably not worth it unless you can show that
> there's enough processing being done by your script that it'd have an
> impact. It's slightly more work to tweak it than just editing a script since
> you'd need to recompile and reload the module, which might also be trickier
> if you're handling traffic at the time.
> Lua (mod_lua) is probably the most commonly used language, but there's also
> (mod_spidermonkey) which you haven't mentioned. Which you use is really up
> to you though.
> As far as database access goes, from Lua check out:
> It gives you a database interface without having to install and configure
> luasql, and you get to take advantage of the FS connection pooling which you
> wouldn't if you were using the native support. That'll should speed up
> database access times (you'll in most cases already be connected to the
> database so the call doesn't have to wait while you connect). I don't think
> that interface is available in the other languages just yet though.
> On 18 February 2011 06:17, Edward de Jong <edward.dejong at voicecarrier.com>wrote:
>> I am new to freeswitch, and wondering which of the many languages to
>> implement my rather complex dial plan in. I know i can't express my desires
>> in the normal XML language, because I need looping and database access, so
>> which language is the best tested and most reliable in terms of usage with
>> FreeSwitch. My finalists so far are Lua, Python, and good old C. Haven't
>> used python or lua yet, but I figure C will have a big performance
>> but maybe not important considering how much greater the CPU load in the
>> switch is devoted to handling audio streams...
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users