After having used Javascript and Lua for scripting in FreeSWITCH, I would recommend using ESL for anything serious. There are many advantages to using ESL instead of a script inside FreeSWITCH, but the main one for me was easier call control, especially when doing asynchronous stuff. I believe there&#39;s a Python version of the ESL library, so you shouldn&#39;t have much trouble getting started.<div>
<br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 2:35 AM, Anton VG <span dir="ltr">&lt;<a href="mailto:anton.vazir@gmail.com">anton.vazir@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
Cannot get answer for myself for languages processing overhead/preference,<br>
<br>
I personally would like to use Python for scripting under Freeswitch,<br>
but considering some recent list activity about low CPS while using<br>
python scripts, etc<br>
querstioning, maybe it&#39;s better to use LUA instead? WIKI or list does<br>
not answer this questions in satisfying manner unfortunatelly. For DB<br>
intensive scripts - DB connections pool is a very important stuff,<br>
having direct influence performance and CPS specifically.<br>
<br>
It looks that lua might be lighter and more tightly integrated to FS,<br>
but if processing overhead difference is just a few times python is<br>
still preferred for me (and many others) since much more<br>
powerfull/libraryreach/etc.<br>
I&#39;ts would be just nice to clear this question.<br>
<br>
1. Is there any comparisions on plain processing overhead?<br>
2. Any data on memory consumtption per active python process?<br>
2. Is there a freeswitch DB pool connection interface like for LUA in<br>
mod_python?<br>
3. If not - what would be the known technique to use external DB<br>
connection pool from inside the FS python script?<br>
4. Seems logical, but please confirm/reject - once executed (compiled<br>
to the bytecode) - the second time the python script under FS will be<br>
executed as precompiled bytecode?<br>
<br>
Regards,<br>
Anton.<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></div>