Fix. Create dbh object in fax_retry.lua (#2168)

This commit is contained in:
Alexey Melnichuk 2016-11-24 09:14:58 +03:00 committed by FusionPBX
parent 4ff9f0c756
commit a7c972ba2d
1 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,7 @@
--connect to the database
local Database = require "resources.functions.database";
dbh = database_handle('system');
dbh = Database.new('system');
--include json library
local json
@ -388,7 +388,6 @@
freeswitch.consoleLog("notice", "[FAX] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
--end
if (storage_type == "base64") then
local Database = require "resources.functions.database"
local dbh = Database.new('system', 'base64');
dbh:query(sql, params);
dbh:release();