<div dir="ltr"><div>Hi all,</div><div>I have the following issue in my lua script.</div><div>I need to initialize a new session, set variables and then originate a call later.</div><div>It doesn't work - I get a session uninitialized error.</div><div><br></div><div>The lua script is called from cli as luarun test.lua</div><div><br></div><div>Here is the script:</div><div>ses = freeswitch.Session()</div><div>ses:execute("set","test=123") <-- get a session uninitialized</div><div><br></div><div>When I try ses = new freeswitch.Session() I get function overload error</div><div><br></div><div>It works only when I use 
ses = freeswitch.Session("{api_hangup_hook='lua retry.lua',continue_on_error=true}/sofia/profile/gateway1/number|/sofia/profile/gateway2/number") <br></div><div>But the problem is that I have a session hangup hook specified and use multiple gateways dial failover.</div><div>The session executes the hangup hook if the first gateway call didn't go through, which doesn't make sense.</div><div>continue_on_error is ignored even if I do 
ses:execute("set","continue_on_error=true") after the initialization.</div><div><br></div><div>Please suggest what is the best approach.</div><div>Thank you<br></div><div><br></div></div>