Fix. Set default values for max length settings (#1706)

This commit is contained in:
Alexey Melnichuk 2016-06-26 20:42:33 +03:00 committed by FusionPBX
parent 855ea303f1
commit a4dfa0c04d
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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