From b476f17af6e16260981d13a7f5ae61b9142948d3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 1 Sep 2020 19:06:40 -0600 Subject: [PATCH] Disable transcribe_enabled if method is equal to queue. --- .../app/voicemail/resources/functions/record_message.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua b/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua index f15bcd3771..3e107e2f99 100644 --- a/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua +++ b/app/scripts/resources/scripts/app/voicemail/resources/functions/record_message.lua @@ -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