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 -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();