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 d81fe7778d)
mr9.2
Marco Capetta 5 years ago
parent d47aa0ba64
commit 04aa1aa5f2

@ -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,

Loading…
Cancel
Save