Posting my answer from the freeswitch mailing list: Question, answer 1, additional information 2.
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.
Brian posted one additional piece of information:
It won't continue the lua unless hangup_after_conference=false
. but you
are correct, the script is executing the conference, it stopped there.