fix for OPTIONS ping

This commit is contained in:
Dave Horton
2020-02-17 21:20:29 -05:00
parent 520ebac5df
commit 7a879a1b83
2 changed files with 2 additions and 1 deletions

1
app.js
View File

@@ -12,6 +12,7 @@ const opts = Object.assign({
timestamp: () => {return `, "time": "${new Date().toISOString()}"`;}
}, {level: process.env.JAMBONES_LOGLEVEL || 'info'});
const logger = require('pino')(opts);
srf.locals.getFeatureServer = require('./lib/fs-tracking')(srf, logger);
const {
lookupAuthHook,
lookupSipGatewayBySignalingAddress

View File

@@ -13,7 +13,7 @@ class CallSession extends Emitter {
this.srf = req.srf;
this.logger = logger.child({callId: req.get('Call-ID')});
this.getFeatureServer = require('./fs-tracking')(this.srf, this.logger);
this.getFeatureServer = req.srf.locals.getFeatureServer;
}
async connect() {