To the best of my understanding, when you call `session:execute` it's a synchronous operation. The Lua script will keep running, waiting for that `execute` to finish.
If you would kick the user out of the conference, the lua script would continue where it left off.

(If you would hangup on the user or transfer them, the session would be over and the script may do it's best to continue, but with no active session.)

Alternatives:
Depending on what you want to accomplish, you can first schedule a task before the conference. Or call the lua script only for some things and process the rest in the dialplan. When you need, kick it back to another lua script for further processing.

-Avi Marcus
BestFone


On Tue, May 19, 2020 at 10:06 AM Ankit <ankit.joban@gmail.com> wrote:
originate {}dialstring &test.lua

test.lua looks like

api = freeswitch.API()
    freeswitch.consoleLog("DEBUG", "test1")
    session:execute("conference", "test_conf");
    freeswitch.consoleLog("DEBUG", "test2")


Lua script losses control after executing conference


Is it possible to continue session in lua after adding the caller to
conference ?



--
Sent from: http://freeswitch-users.2379917.n2.nabble.com/

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://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
https://freeswitch.com