<meta charset="utf-8"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Lua can be run directly, whereas python would be used eith mod_xml_curl, served from a server (I do tis with php) so if you know lua, use it. If you like python, use that.</blockquote><div><br></div><div>Not true - while you can implement the script that mod_xml_curl using Python, you can also use it directly within FreeSWITCH just like Lua:</div>
<div><a href="http://wiki.freeswitch.org/wiki/Mod_python">http://wiki.freeswitch.org/wiki/Mod_python</a></div><div><br></div><div>-Steve</div><div><br><div class="gmail_quote">On 18 February 2011 08:17, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p></p><div class="im"><br>
On Feb 18, 2011 8:51 AM, "Edward de Jong" <<a href="mailto:edward.dejong@voicecarrier.com" target="_blank">edward.dejong@voicecarrier.com</a>> wrote:<br>
><br>
> 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<br>
</div>
There is a mod called mod_odbc_query in the git contrib that lets you make sql queries from the dialplan. The static xml can do a lot.<br>
I'm not sure what you mean by looping, but you can transfer to a new number, and it can restart going through thr dialplan.<p></p>
<p></p><div class="im">, 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 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></div>
Lua can be run directly, whereas python would be used eith mod_xml_curl, served from a server (I do tis with php) so if you know lua, use it. If you like python, use that.<br>
C is probably overkill becaue you would need to compile it for any change you make. If you have standardized functions that don't already have a mod, then by all means write a modin C and share it wih the community.<br>
<font color="#888888">
-Avi</font><p></p><div><div></div><div class="h5">
<p>> 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>
</p>
</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>