execute a lua script from another script
Hi, Is there a way to execute a lua script from another script? I've this script s1.lua i want to run s2.lua from it. I've tried s1.lua: dofile(s2.lua); but this didn't work. Thanks, Snabel
Try using the complete path to s2.lua in quotes.
On Nov 10, 2014, at 9:37 AM, Snabel Kabiya <snabel@lexifone.com> wrote:
Hi,
Is there a way to execute a lua script from another script? I've this script s1.lua i want to run s2.lua from it. I've tried
s1.lua: dofile(s2.lua);
but this didn't work.
Thanks, Snabel _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Hello Snabel, Is it within the dialplan? If it's the case you can do: session:execute("lua", "s2.lua $params") Otherwise I don't know. Florent 2014-11-10 15:37 GMT+01:00 Snabel Kabiya <snabel@lexifone.com>:
Hi,
Is there a way to execute a lua script from another script? I've this script s1.lua i want to run s2.lua from it. I've tried
s1.lua: dofile(s2.lua);
but this didn't work.
Thanks, Snabel
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
participants (3)
-
Florent Krieg
-
Snabel Kabiya
-
Sumit Birla