From 2a9dd10eed4c3d6e42a2a4888c7ee443cee79487 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 2 Dec 2016 10:40:20 +0100 Subject: [PATCH] TT#7190 ngcp-dlg(cnt|list)-clean: fix sr.log error * define missing sr.log() function from kamailio Change-Id: Ie455bfdf4d29318a0c518292a52087c721d97983 --- scripts/ngcp-dlgcnt-clean | 4 ++++ scripts/ngcp-dlglist-clean | 4 ++++ 2 files changed, 8 insertions(+) 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