From a0748192700e9bc09ffa5173491edfae87a97b34 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 May 2017 01:17:08 -0600 Subject: [PATCH] Update intercept.lua --- resources/install/scripts/intercept.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/install/scripts/intercept.lua b/resources/install/scripts/intercept.lua index fc77c323ab..c3b6f62288 100644 --- a/resources/install/scripts/intercept.lua +++ b/resources/install/scripts/intercept.lua @@ -49,9 +49,9 @@ --include json library local json --- if (debug["sql"]) then + if (debug["sql"]) then json = require "resources.functions.lunajson" --- end + end --get the hostname local hostname = trim(api:execute("switchname", "")); @@ -288,9 +288,9 @@ sql = sql .. ") "; sql = sql .. "AND call_uuid IS NOT NULL "; sql = sql .. "LIMIT 1 "; - --if (debug["sql"]) then + if (debug["sql"]) then log.noticef("SQL: %s; params: %s", sql, json.encode(params)); - --end + end local is_child dbh:query(sql, params, function(row) --for key, val in pairs(row) do