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@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@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
Join Us At ClueCon - Aug 7-9, 2012
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