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

Денис denis at ringme.ru
Mon Feb 9 16:24:23 MSK 2015


On 08.02.2015 08:43, John Nash wrote:
> 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?

on api no session variables?
imho - different array of variables.



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