From 36ec0b71744545c1b8a8be1362504e41f8a6d04c Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 27 Jan 2021 11:42:09 +0100 Subject: [PATCH] TT#109306 Fix duration variable type when printing log of recentcalls The 'duration' variable is a string but it was written as int, causing kamailio to write error lines Change-Id: I2df1524d331e9b1d54bb0bdb84c06f4280e14fae (cherry picked from commit d81fe7778d69ef944c50f7ddfe3fcad02edba1c1) --- ngcp/recentcalls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngcp/recentcalls.lua b/ngcp/recentcalls.lua index b9aa3c5..5723d0d 100644 --- a/ngcp/recentcalls.lua +++ b/ngcp/recentcalls.lua @@ -88,7 +88,7 @@ end self.central:expire(key, self.config.expire) end local msg = "central:hset[%s]=>[%s] callid: %s uuid: %s " .. - "start_time: %s duration: %d caller: %s callee: %s source: %s expire: %d\n" + "start_time: %s duration: %s caller: %s callee: %s source: %s expire: %d\n" KSR.info(msg:format(key, tostring(res), callid, uuid, start_time, duration,