From 0ad7bdf1d95e864299a9f7332f43d261f1b1e175 Mon Sep 17 00:00:00 2001 From: konradSC Date: Mon, 10 Apr 2017 20:13:50 -0400 Subject: [PATCH] BugFix for VM Transcription (#2491) Records as MP3 and skips transcription steps if a user has transcription set to false. --- .../app/voicemail/resources/functions/record_message.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua index a62196d05e..0d9d16230b 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua @@ -226,7 +226,7 @@ mkdir(voicemail_dir.."/"..voicemail_id); if (vm_message_ext == "mp3") then shout_exists = trim(api:execute("module_exists", "mod_shout")); - if (shout_exists == "true" and transcribe_enabled == "false") then + if (shout_exists == "true" and transcribe_enabled == "false") or (shout_exists == "true" and transcribe_enabled == "true" and voicemail_transcription_enabled == "false") then freeswitch.consoleLog("notice", "using mod_shout for mp3 encoding\n"); --record in mp3 directly result = session:recordFile(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid..".mp3", max_len_seconds, record_silence_threshold, silence_seconds);