diff --git a/app/switch/resources/scripts/app/voicemail/resources/functions/record_message.lua b/app/switch/resources/scripts/app/voicemail/resources/functions/record_message.lua index 3ea5ec0d03..6504b40eee 100644 --- a/app/switch/resources/scripts/app/voicemail/resources/functions/record_message.lua +++ b/app/switch/resources/scripts/app/voicemail/resources/functions/record_message.lua @@ -264,7 +264,7 @@ message_length_formatted = format_seconds(message_length); --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); else if (session:ready()) then @@ -313,4 +313,4 @@ record_menu("message", voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext); end end - end \ No newline at end of file + end