[Freeswitch-users] Freeswitch and luarocks

Areski areski at gmail.com
Thu Jun 13 18:58:17 MSD 2013


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at gmail.com>
Founder at Star2Billing (www.star2billing.com)

Tel: +34650784355
Twitter: http://twitter.com/areskib
LinkedIn: http://www.linkedin.com/in/areski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130613/0b7fa765/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list