Update the message length checker to match the silence seconds, otherwise silent voicemails are emailed or put into the voicemail box and cannot be played properly

This commit is contained in:
Harry Foster
2025-10-21 17:29:13 +01:00
parent b99aeee2d6
commit 6530340765

View File

@@ -264,7 +264,7 @@
message_length_formatted = format_seconds(message_length); message_length_formatted = format_seconds(message_length);
--if the recording is below the minimal length then re-record the message --if the recording is below the minimal length then re-record the message
if (message_length > 2) then if (message_length > message_silence_seconds) then
session:setVariable("voicemail_message_seconds", message_length); session:setVariable("voicemail_message_seconds", message_length);
else else
if (session:ready()) then if (session:ready()) then
@@ -313,4 +313,4 @@
record_menu("message", voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext); record_menu("message", voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
end end
end end
end end