From 6ba188dc5ed8fdd7daa6739a28283849e2d26008 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 12 May 2016 20:43:57 -0600 Subject: [PATCH] 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. --- resources/install/scripts/intercept.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/intercept.lua b/resources/install/scripts/intercept.lua index fd982ee438..0322a731de 100644 --- a/resources/install/scripts/intercept.lua +++ b/resources/install/scripts/intercept.lua @@ -16,7 +16,7 @@ -- -- The Initial Developer of the Original Code is -- Mark J Crane --- Copyright (C) 2010 - 2015 +-- Copyright (C) 2010 - 2016 -- the Initial Developer. All Rights Reserved. -- -- Contributor(s): @@ -246,7 +246,7 @@ end --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 call_hostname = ""; @@ -280,6 +280,9 @@ log.notice("sql "..sql); end local is_child + + require "resources.functions.database_handle"; + local dbh = database_handle('switch'); dbh:query(sql, function(row) -- for key, val in pairs(row) do -- log.notice("row "..key.." "..val);