Luarocks is a package management system for lua, for instance you can use luarocks to install luasql-postgres :luarocks install luasql-postgres
Then on your lua scripts you build on FreeSWITCH, you can use/include those libraries.You only have to make sure to configure your lua.conf.xml and set module-directory to where the packages are installed on your distribution :
That's what I have at the moment with Ubuntu 12.04 :<param name="module-directory" value="/usr/lib/x86_64-linux-gnu/?.so"/><param name="module-directory" value="/usr/lib/x86_64-linux-gnu/lua/5.1/?.so"/><param name="module-directory" value="/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/?.so"/><param name="module-directory" value="/usr/lib/i386-linux-gnu/lua/5.1/?.so"/><param name="module-directory" value="/usr/local/lib/lua/5.1/?.so"/>
On Thu, Jun 13, 2013 at 2:42 PM, Alex Lake <alex@digitalmail.com> wrote:
I was wondering about how one might use luarocks with the lua used by
Freeswitch - is this possible? Can't see much of help in the wiki, but
if I find out, will pay the tax! ;-)
_________________________________________________________________________
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
--
Kind regards,
/Areski
----
Arezqui Belaid, <areski@gmail.com>
Founder at Star2Billing (www.star2billing.com)
Tel: +34650784355
Twitter: http://twitter.com/areskib
LinkedIn: http://www.linkedin.com/in/areski
_________________________________________________________________________ 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
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2242 / Virus Database: 3199/5906 - Release Date: 06/12/13