diff --git a/scripts/ngcp-dlgcnt-clean b/scripts/ngcp-dlgcnt-clean index c368cfd..4eae3fd 100755 --- a/scripts/ngcp-dlgcnt-clean +++ b/scripts/ngcp-dlgcnt-clean @@ -4,6 +4,10 @@ local NGCPDlg = require 'ngcp.dlgcnt' local config = "/etc/kamailio/proxy/dlgcnt.lua.cfg" -- luacheck: globals dlg_config +sr = {} +sr.log = function (level, str) + print(string.format("[%s] %s", level, str)) +end local function get_config() if os.getenv('DLG_CONFIG') then diff --git a/scripts/ngcp-dlglist-clean b/scripts/ngcp-dlglist-clean index 074dbcd..38ab5b6 100644 --- a/scripts/ngcp-dlglist-clean +++ b/scripts/ngcp-dlglist-clean @@ -4,6 +4,10 @@ local NGCPDlgList = require 'ngcp.dlglist' local config = "/etc/kamailio/proxy/dlgcnt.lua.cfg" -- luacheck: globals dlg_config +sr = {} +sr.log = function (level, str) + print(string.format("[%s] %s", level, str)) +end local function get_config() if os.getenv('DLG_CONFIG') then