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