Voicemail - send_email (script): Assume direct sox call (for now).
This commit is contained in:
parent
d79c7b1cb9
commit
d86217247e
|
|
@ -235,14 +235,11 @@
|
||||||
--prepare file
|
--prepare file
|
||||||
file = voicemail_dir.."/"..id.."/msg_"..uuid.."."..vm_message_ext;
|
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)
|
--combine intro, if exists, with message for emailing (only)
|
||||||
intro = voicemail_dir.."/"..id.."/intro_"..uuid.."."..vm_message_ext;
|
intro = voicemail_dir.."/"..id.."/intro_"..uuid.."."..vm_message_ext;
|
||||||
combined = voicemail_dir.."/"..id.."/intro_msg_"..uuid.."."..vm_message_ext;
|
combined = voicemail_dir.."/"..id.."/intro_msg_"..uuid.."."..vm_message_ext;
|
||||||
if (file_exists(intro) and sox ~= nil and sox ~= '') then
|
if (file_exists(intro) and file_exists(file)) then
|
||||||
os.execute(sox.." "..intro.." "..file.." "..combined);
|
os.execute("sox "..intro.." "..file.." "..combined);
|
||||||
end
|
end
|
||||||
|
|
||||||
--prepare the subject
|
--prepare the subject
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue