[Freeswitch-users] lua library

Alex alex at thewinelake.com
Wed Jun 20 14:39:46 MSD 2012


Actually, a little more digging and I found that the standard lua 
environment is OK - it looks in various places by default.
However, I I may well try your thing - I wonder if that doesn't use the 
modular approach though...
I have updated the wiki...

>      dofile "/usr/local/freeswitch/scripts/my_functions.lua"
>
> works. But it seems to only take an absolute path. If you find another 
> way, that would be great.
> Oh, and if you could wikifiy that...
>
> -Avi
>
>
> On Wed, Jun 20, 2012 at 11:24 AM, Alex <alex at thewinelake.com 
> <mailto:alex at thewinelake.com>> wrote:
>
>     Got some fairly common lua functions that I'd like to use as a
>     library.
>     I note that there is a "require" feature in lua, but that requires
>     modification of the environment variables.
>     I was wondering if there isn't a simpler "include" type mechanism
>     where
>     I can specify the full path of a lua script?
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     Join Us At ClueCon - Aug 7-9, 2012
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto: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
>
>
>
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2012.0.2177 / Virus Database: 2437/5080 - Release Date: 06/19/12
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120620/a757ec3f/attachment.html 


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