Fix. Load required libraries in voicemail. (#1705)

This commit is contained in:
Alexey Melnichuk 2016-06-26 18:03:21 +03:00 committed by FusionPBX
parent 8f26972c20
commit 7a9a4bc3da
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,10 @@
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--load libraries
local Database = require "resources.functions.database"
local Settings = require "resources.functions.lazy_settings"
--define a function to record the greeting
function record_greeting(greeting_id)
local db = dbh or Database.new('system')

View File

@ -23,6 +23,10 @@
-- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--load libraries
local Database = require "resources.functions.database"
local Settings = require "resources.functions.lazy_settings"
--save the recording
function record_message()
local db = dbh or Database.new('system')