diff --git a/resources/install/scripts/app/voicemail/resources/functions/record_greeting.lua b/resources/install/scripts/app/voicemail/resources/functions/record_greeting.lua index e34bbf5c5e..053637e036 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/record_greeting.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/record_greeting.lua @@ -32,7 +32,7 @@ local db = dbh or Database.new('system') local settings = Settings.new(db, domain_name, domain_uuid) - local max_len_seconds = settings:get('voicemail', 'greeting_max_length', 'numeric'); + local max_len_seconds = settings:get('voicemail', 'greeting_max_length', 'numeric') or 90; --flush dtmf digits from the input buffer session:flushDigits(); diff --git a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua index 2ebb6d6b90..39d7467479 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/record_message.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/record_message.lua @@ -32,7 +32,7 @@ local db = dbh or Database.new('system') local settings = Settings.new(db, domain_name, domain_uuid) - local max_len_seconds = settings:get('voicemail', 'message_max_length', 'numeric'); + local max_len_seconds = settings:get('voicemail', 'message_max_length', 'numeric') or 300; --record your message at the tone press any key or stop talking to end the recording if (skip_instructions == "true") then