[Freeswitch-users] execute a lua script from another script

Florent Krieg flokrrr at gmail.com
Mon Nov 10 18:36:05 MSK 2014


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 at 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 at 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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141110/ea8275dd/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list