Hi, I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI. I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it. Kindly help. -- REGARDS ============================================ *Ashish Gautam* (+918802865008)
Within FreeSWITCH LUA is usually preferred (but javascript/python/php/.net are possible too). Over an ESL socket it's up to the programmer. -Steve On 12 March 2013 06:35, ashish gautam <gautamashish09@gmail.com> wrote:
Hi,
I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI.
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Kindly help.
-- REGARDS ============================================ *Ashish Gautam* (+918802865008)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, 12 Mar 2013 12:05:10 +0530 ashish gautam <gautamashish09@gmail.com> wrote:
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Ooh! Language wars. :-) I use Python because that's what I use for almost everything else. So which language do you use the most? Which are you most comfortable with. That's your answer. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net Voip: sip:darcy@Vex.Net
+1 On the client side over ESL it really isn't going to matter what other people say. It's what's best for you with your experience and in your use-case. And that can vary widely from a simple script to a daemon handling 100000s of calls over ESL. When scripts are run from within FS (not over ESL) then LUA is far more lightweight which is why it's generally preferred there. It's probably also better tested since more people use it. But you're still free to use the others if they suit you better. -Steve On 12 March 2013 14:11, D'Arcy J.M. Cain <darcy@vex.net> wrote:
On Tue, 12 Mar 2013 12:05:10 +0530 ashish gautam <gautamashish09@gmail.com> wrote:
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Ooh! Language wars. :-)
I use Python because that's what I use for almost everything else. So which language do you use the most? Which are you most comfortable with. That's your answer.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net Voip: sip:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
First take a look at: http://wiki.freeswitch.org/wiki/Rosetta_stone There's MANY ways to tell freeswitch what to do. Let's take a step back, OK? The simplest is to create a dialplan. With all the condition, regex, time based routing, etc, you can do quite a lot in just a static dialplan. Depending on what you need to do, you may never need to go beyond this. You can even do database calls from the static dialplan with mod_odbc_query (from git freeswitch-contrib). If you need a bit more flexiblity, you can call a lua script at any point. Lua seems to be the most embeddable language with very low overhead and high community support. If you need more, you can use XML_curl -- that's from a web server in any language -- that serves up XML specific for each call -- it gets all the variables about the call at that time. (You have to ensure your web server is working!) Alternatively, there's ESL - freeswitch fires off events for many things you can watch and trigger something. Or, ESL outbound. If you know C, you can write this logic in a module that is loaded directly with freeswitch. You can look up all those in the wiki, but I hope this helps explain the bigger picture. -Avi Marcus BestFone On Tue, Mar 12, 2013 at 8:35 AM, ashish gautam <gautamashish09@gmail.com>wrote:
Hi,
I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI.
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Kindly help.
-- REGARDS ============================================ *Ashish Gautam* (+918802865008)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This is something from the wiki. http://wiki.freeswitch.org/wiki/Which_scripting_language_should_I_use%3F -JP On Mon, Mar 11, 2013 at 11:35 PM, ashish gautam <gautamashish09@gmail.com>wrote:
Hi,
I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI.
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Kindly help.
-- REGARDS ============================================ *Ashish Gautam* (+918802865008)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
+1 for LUA, I use LUA to route incoming/outgoing/handle early media/ringtones/etc. and it never had a problem or affects speed. If you're experienced in other languages: * Pretty easy to learn * Not too bad to debug and test in FreeSwitch (great integration) * You will miss some things like CASE capability and parsing/splitting strings tougher, but there are ways around them with some learning and web searches Mario G On Mar 12, 2013, at 9:21 AM, JP wrote:
This is something from the wiki.
http://wiki.freeswitch.org/wiki/Which_scripting_language_should_I_use%3F
-JP
On Mon, Mar 11, 2013 at 11:35 PM, ashish gautam <gautamashish09@gmail.com> wrote: Hi,
I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI.
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Kindly help.
-- REGARDS ============================================ Ashish Gautam (+918802865008)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I use python but that's only because i cba to learn Lua at the moment :) On 12 March 2013 17:13, Mario G <mario_fs@mgtech.com> wrote:
+1 for LUA, I use LUA to route incoming/outgoing/handle early media/ringtones/etc. and it never had a problem or affects speed. If you're experienced in other languages: * Pretty easy to learn * Not too bad to debug and test in FreeSwitch (great integration) * You will miss some things like CASE capability and parsing/splitting strings tougher, but there are ways around them with some learning and web searches Mario G
On Mar 12, 2013, at 9:21 AM, JP wrote:
This is something from the wiki.
http://wiki.freeswitch.org/wiki/Which_scripting_language_should_I_use%3F
-JP
On Mon, Mar 11, 2013 at 11:35 PM, ashish gautam <gautamashish09@gmail.com>wrote:
Hi,
I am a newbie to FS and was previously using Asterisk for developing telephony apps using PHP-AGI.
I want to know which scripting language will be best to use with freeSWITCH? I have come across languages like Javascript,Python,LUA etc. and I am confused at this time about which one works best with it.
Kindly help.
-- REGARDS ============================================ *Ashish Gautam* (+918802865008)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F<info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
participants (8)
-
Andrew Cassidy
-
ashish gautam
-
Avi Marcus
-
D'Arcy J.M. Cain
-
JP
-
Mario G
-
Steven Ayre
-
Steven Schoch