From d86217247effc75e6c05c6a28fa0d9fe392eedb8 Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 1 Aug 2024 12:12:39 -0600 Subject: [PATCH] Voicemail - send_email (script): Assume direct sox call (for now). --- .../app/voicemail/resources/functions/send_email.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/switch/resources/scripts/app/voicemail/resources/functions/send_email.lua b/app/switch/resources/scripts/app/voicemail/resources/functions/send_email.lua index 1b89cac36e..0322a8f7c6 100644 --- a/app/switch/resources/scripts/app/voicemail/resources/functions/send_email.lua +++ b/app/switch/resources/scripts/app/voicemail/resources/functions/send_email.lua @@ -235,14 +235,11 @@ --prepare file file = voicemail_dir.."/"..id.."/msg_"..uuid.."."..vm_message_ext; - --find the location of sox, if installed - sox = os.execute('which sox'); - --combine intro, if exists, with message for emailing (only) intro = voicemail_dir.."/"..id.."/intro_"..uuid.."."..vm_message_ext; combined = voicemail_dir.."/"..id.."/intro_msg_"..uuid.."."..vm_message_ext; - if (file_exists(intro) and sox ~= nil and sox ~= '') then - os.execute(sox.." "..intro.." "..file.." "..combined); + if (file_exists(intro) and file_exists(file)) then + os.execute("sox "..intro.." "..file.." "..combined); end --prepare the subject