<div dir="ltr">mod_python, cool. I&#39;ve heard lua has a very low overhead, but what about mod_python (or PHP ESL)?<div>I&#39;d imagine the script would have to be left &quot;running&quot; until the call completed.</div><div>

mod_python seems pretty well fleshed out...</div><div>-Avi<br><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 11:07 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@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;">C is faster, but it&#39;s probably not worth it unless you can show that there&#39;s enough processing being done by your script that it&#39;d have an impact. It&#39;s slightly more work to tweak it than just editing a script since you&#39;d need to recompile and reload the module, which might also be trickier if you&#39;re handling traffic at the time.<div>



<br></div><div>Lua (mod_lua) is probably the most commonly used language, but there&#39;s also Python (mod_python) as you&#39;ve spotted. There&#39;s also JavaScript (mod_spidermonkey) which you haven&#39;t mentioned. Which you use is really up to you though.</div>



<div><br></div><div>As far as database access goes, from Lua check out:</div><div><a href="http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh" target="_blank">http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh</a></div><div>

<br></div><div>

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&#39;t if you were using the native support. That&#39;ll should speed up database access times (you&#39;ll in most cases already be connected to the database so the call doesn&#39;t have to wait while you connect). I don&#39;t think that interface is available in the other languages just yet though.</div>



<div><br></div><div>-Steve</div><div><div></div><div class="h5"><div><br></div><div><br><div class="gmail_quote">On 18 February 2011 06:17, Edward de Jong <span dir="ltr">&lt;<a href="mailto:edward.dejong@voicecarrier.com" target="_blank">edward.dejong@voicecarrier.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am new to freeswitch, and wondering which of the many languages to implement my rather complex dial plan in. I know i can&#39;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&#39;t used python or lua yet, but I figure C will have a big performance advantage.<br>




<br>
but maybe not important considering how much greater the CPU load in the switch is devoted to handling audio streams...<br>
<br>
edj<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div><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></blockquote></div><br></div></div>