[Freeswitch-users] api:execute vs session:execute

John Nash john.nash778 at gmail.com
Sun Feb 8 08:43:57 MSK 2015


While reading documentation I saw that to call another lua script from
inside a lua script we use ..

api = freeswitch.API();
reply = api:executeString("luarun another.lua");

But we can also run another lua script using session:execute. I was
wondering what is the difference, which one should be preferred?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150208/992c0ceb/attachment.html 


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