update deps

This commit is contained in:
Dave Horton
2020-02-19 11:18:14 -05:00
parent ef9ee30fdc
commit 734ec897e5
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -71,6 +71,6 @@ srf.use((req, res, next, err) => {
setInterval(() => {
stats.gauge('sbc.sip.calls.count', activeCallIds.size, ['direction:inbound']);
}, 3000);
}, 5000);
module.exports = {srf, logger};
+1 -3
View File
@@ -3,7 +3,7 @@ const debug = require('debug')('jambonz:sbc-inbound');
module.exports = function(srf, logger) {
const {lookupSipGatewayBySignalingAddress, lookupAuthHook} = srf.locals.dbHelpers;
const authenticator = require('jambonz-http-authenticator')(lookupAuthHook, logger, {blacklistUnknownRealms: true});
const {stats, activeCallIds} = srf.locals;
const {stats} = srf.locals;
function initLocals(req, res, next) {
req.locals = req.locals || {};
@@ -14,8 +14,6 @@ module.exports = function(srf, logger) {
const tags = ['canceled:yes', 'sipStatus:487'];
if (req.locals.originator) tags.push(`originator:${req.locals.originator}`);
stats.increment('sbc.terminations', tags);
activeCallIds.delete(callId);
stats.gauge('sbc.sip.calls.count', activeCallIds.size);
});
stats.increment('sbc.invites', ['direction:inbound']);
next();
+4 -3
View File
@@ -1866,10 +1866,11 @@
}
},
"jambonz-stats-collector": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/jambonz-stats-collector/-/jambonz-stats-collector-0.0.1.tgz",
"integrity": "sha512-SjldpRYr5fRn/gXb1w9T9YvTiV+5cenVyNQjZfjOGBpGUlcHQomK84oxgdIiaLbGXEg7VxM5E9kupEjoF6hKfg==",
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/jambonz-stats-collector/-/jambonz-stats-collector-0.0.3.tgz",
"integrity": "sha512-WcQr7Zhk3BDi6ZO8ft5eigO8ygu8D2rgHIC2RbL15a+a5qGDeQATI+5LXZnYFiHwn5WoDweR0sc0/Ui5nYIeXg==",
"requires": {
"debug": "^4.1.1",
"hot-shots": "^6.8.7"
}
},
+1 -2
View File
@@ -28,11 +28,10 @@
"debug": "^4.1.1",
"drachtio-fn-b2b-sugar": "0.0.12",
"drachtio-srf": "^4.4.28",
"hot-shots": "^6.8.7",
"jambonz-db-helpers": "^0.3.2",
"jambonz-http-authenticator": "0.1.1",
"jambonz-rtpengine-utils": "0.0.9",
"jambonz-stats-collector": "0.0.1",
"jambonz-stats-collector": "0.0.3",
"pino": "^5.14.0",
"rtpengine-client": "^0.0.8"
},