mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-10-09 21:14:09 +00:00
update deps
This commit is contained in:
+1
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user