diff --git a/ngcp/dlgcnt.lua b/ngcp/dlgcnt.lua index 7766fb3..9064d0a 100644 --- a/ngcp/dlgcnt.lua +++ b/ngcp/dlgcnt.lua @@ -217,6 +217,15 @@ end KSR.dbg(string.format("central:get[%s]=>%s - %s\n", key, tostring(res), key)); return res; end + + function NGCPDlgCounters:list(key) + if not self.pair:test_connection() then + self.pair:connect() + end + local res = self.central.client:lrange(key, 0, -1); + KSR.dbg(string.format("central:list[%s]=>%s\n", key, utable.tostring(res))); + return utable.tostring(res); + end -- class return NGCPDlgCounters