Why Lua?
So, which language is better for FreeSWITCH scripting?
There is no science at all, here - all here is broscience. Yes, Lua is definitely more embeddable and faster than other languages; so what?
Scripting in FreeSWITCH has a precise role: to complement the dialplan for complex applications. That is, you use the dialplan for high-cps call dispatching. Or you use a custom C FreeSWITCH module. I would bet that, in any real-world scenario where scripting is used in its correct role, there is no meaningful performance gap between different scripting languages. Network delays, database queries, and caller reaction times will always be much more important than whatever script initialization/execution time.
That said, you balance your language ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access