write call_counts time series data tracking inbound call counts by account

This commit is contained in:
Dave Horton
2022-04-01 13:08:25 -04:00
parent 17b53438e2
commit 91cd677ad8
5 changed files with 22 additions and 12 deletions

2
app.js
View File

@@ -14,6 +14,7 @@ const opts = Object.assign({
}, {level: process.env.JAMBONES_LOGLEVEL || 'info'});
const logger = require('pino')(opts);
const {
writeCallCount,
queryCdrs,
writeCdrs,
writeAlerts,
@@ -61,6 +62,7 @@ const {getRtpEngine, setRtpEngines} = require('@jambonz/rtpengine-utils')([], lo
});
srf.locals = {...srf.locals,
stats,
writeCallCount,
queryCdrs,
writeCdrs,
writeAlerts,