If mod shout exits use it to save voicemail messages as mp3.
This commit is contained in:
parent
8f187eefe3
commit
03db90f9dc
|
|
@ -76,7 +76,7 @@
|
|||
silence_threshold = 30;
|
||||
silence_seconds = 5;
|
||||
mkdir(voicemail_dir.."/"..voicemail_id);
|
||||
if (vm_message_ext == "mp3") then
|
||||
if (vm_message_ext == "mp3" and trim(api:execute("module_exists", "mod_shout")) == "false") then
|
||||
--make the recording
|
||||
--session:execute("record", "vlc://#standard{access=file,mux=mp3,dst="..voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext.."}");
|
||||
result = session:recordFile(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid..".wav", max_len_seconds, silence_threshold, silence_seconds);
|
||||
|
|
|
|||
Loading…
Reference in New Issue