Update forward_add_intro.lua

This commit is contained in:
FusionPBX 2016-09-03 21:15:07 -06:00 committed by GitHub
parent 6d722bd34f
commit 0a67365786
1 changed files with 4 additions and 4 deletions

View File

@ -35,13 +35,13 @@
freeswitch.consoleLog("notice", "[voicemail][forward add intro] "..add_intro_id.."\n");
if (add_intro_id == '1') then
--connect to the database
local db = dbh or Database.new('system');
--load libraries
local Database = require "resources.functions.database";
local Settings = require "resources.functions.lazy_settings";
--connect to the database
local db = dbh or Database.new('system');
--get the settings.
local settings = Settings.new(db, domain_name, domain_uuid);
local max_len_seconds = settings:get('voicemail', 'max_len_seconds', 'boolean') or 300;