Disable transcribe_enabled if method is equal to queue.

This commit is contained in:
FusionPBX
2020-09-01 19:06:40 -06:00
committed by GitHub
parent 62e821087f
commit b476f17af6

View File

@@ -331,6 +331,7 @@
local message_silence_seconds = settings:get('voicemail', 'message_silence_seconds', 'numeric') or 3;
transcribe_enabled = settings:get('voicemail', 'transcribe_enabled', 'boolean') or "false";
local transcribe_provider = settings:get('voicemail', 'transcribe_provider', 'text') or '';
local email_method = settings:get('email', 'method', 'text') or "smtp";
--debug information
if (debug["info"]) then
@@ -459,6 +460,11 @@
--start epoch
start_epoch = os.time();
--if using the email queue disable inline transcription
if (email_method == 'queue') then
transcribe_enabled = 'false';
end
--save the recording
-- syntax is session:recordFile(file_name, max_len_secs, silence_threshold, silence_secs)
if (storage_path == "http_cache") then