mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Commented out the new database handle --local dbh = Database.new('switch') as it has a bug when freeswitch is using the DSN with the PostgreSQL driver. This change works around this problem by using the original database handler.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
--
|
--
|
||||||
-- The Initial Developer of the Original Code is
|
-- The Initial Developer of the Original Code is
|
||||||
-- Mark J Crane <markjcrane@fusionpbx.com>
|
-- Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- Copyright (C) 2010 - 2015
|
-- Copyright (C) 2010 - 2016
|
||||||
-- the Initial Developer. All Rights Reserved.
|
-- the Initial Developer. All Rights Reserved.
|
||||||
--
|
--
|
||||||
-- Contributor(s):
|
-- Contributor(s):
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
end
|
end
|
||||||
|
|
||||||
--connect to FS database
|
--connect to FS database
|
||||||
local dbh = Database.new('switch')
|
--local dbh = Database.new('switch')
|
||||||
|
|
||||||
--check the database to get the uuid of a ringing call
|
--check the database to get the uuid of a ringing call
|
||||||
call_hostname = "";
|
call_hostname = "";
|
||||||
@@ -280,6 +280,9 @@
|
|||||||
log.notice("sql "..sql);
|
log.notice("sql "..sql);
|
||||||
end
|
end
|
||||||
local is_child
|
local is_child
|
||||||
|
|
||||||
|
require "resources.functions.database_handle";
|
||||||
|
local dbh = database_handle('switch');
|
||||||
dbh:query(sql, function(row)
|
dbh:query(sql, function(row)
|
||||||
-- for key, val in pairs(row) do
|
-- for key, val in pairs(row) do
|
||||||
-- log.notice("row "..key.." "..val);
|
-- log.notice("row "..key.." "..val);
|
||||||
|
|||||||
Reference in New Issue
Block a user