mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-13 06:35:00 +00:00
Fix intermittent call recording by removing api_on_answer
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
<action application="set" data="record_path=${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}" inline="true"/>
|
||||
<action application="set" data="record_name=${uuid}.${record_ext}" inline="true"/>
|
||||
<action application="mkdir" data="${record_path}"/>
|
||||
<action application="set" data="recording_follow_transfer=true" inline="true"/>
|
||||
<action application="bind_digit_action" data="local,*5,api:uuid_record,${uuid} mask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},both,self"/>
|
||||
<action application="bind_digit_action" data="local,*6,api:uuid_record,${uuid} unmask ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext},both,self"/>
|
||||
<action application="set" data="record_append=true" inline="true"/>
|
||||
<action application="set" data="record_in_progress=true" inline="true"/>
|
||||
<action application="set" data="api_on_answer=uuid_record ${uuid} start ${record_path}/${record_name}" inline="false"/>
|
||||
<action application="set" data="recording_follow_transfer=true" inline="true"/>
|
||||
<action application="set" data="uuid_record_result=${uuid_record ${uuid} start ${record_path}/${record_name}}" inline="false" enabled="true"/>
|
||||
<action application="set" data="record_answer_req=true"/>
|
||||
<action application="record_session" data="${record_path}/${record_name}"/>
|
||||
</condition>
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
|
||||
--record the session
|
||||
if (record_session) then
|
||||
cmd = "uuid_record "..uuid.." start "..path.."/"..uuid.."."..record_ext;
|
||||
session:execute("set", "api_on_answer="..cmd);
|
||||
--freeswitch.consoleLog("notice", "[app:dialplan] "..cmd.."\n");
|
||||
command = "uuid_record_result='${uuid_record "..uuid.." start "..path.."/"..uuid.."."..record_ext .."}'";
|
||||
session:execute("set", command);
|
||||
--freeswitch.consoleLog("notice", "[app:dialplan] " .. command .. "\n");
|
||||
end
|
||||
end
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
local record_ext = session:getVariable("record_ext") or "wav";
|
||||
local record_name = uuid.."."..record_ext;
|
||||
local record_path = recordings_dir .. "/" .. domain_name .. "/archive/" .. os.date("%Y/%b/%d");
|
||||
record_session = ",api_on_answer='uuid_record "..uuid.." start ".. record_path .. "/" .. record_name .. "',record_path='".. record_path .."',record_name="..record_name;
|
||||
record_session = ",uuid_record_result='${uuid_record "..uuid.." start ".. record_path .. "/" .. record_name .. "}',record_path='".. record_path .."',record_name="..record_name;
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1041,7 +1041,7 @@
|
||||
--record the session
|
||||
if (record_session) then
|
||||
session:setVariable("record_stereo", "true");
|
||||
record_session = ",api_on_answer='uuid_record "..uuid.." start ".. record_path .. "/" .. record_name .. "',record_path='".. record_path .."',record_name="..record_name;
|
||||
record_session = ",uuid_record_result='${uuid_record "..uuid.." start ".. record_path .. "/" .. record_name .. "}',record_path='".. record_path .."',record_name="..record_name;
|
||||
session:setVariable("record_path", record_path);
|
||||
else
|
||||
record_session = '';
|
||||
|
||||
Reference in New Issue
Block a user