Hi All,
We’re using execute_on_answer in our dialplan as follows:
<action application="export" data=" nolocal:execute_on_answer=record_session ${rec_file}"/>
However, under certain conditions we want to record the session immediately while the A leg is being processed by a LUA script (before we begin B leg), doing so causes a bug in the audio file as the call is actually recorded twice. As a result we need to unset\clear the execute_on_answer variable.
I was thinking of just setting re-exporting it with a null value, but as I can’t find any instances of this being done before I’m not sure if this is best practice for FreeSWITCH:
session:execute("export"," nolocal:execute_on_answer=");
What is the correct way to unset\clear the above execute_on_answer variable in LUA?
Thanks in advance,
Shaun
![]() |