mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
fix for OPTIONS ping
This commit is contained in:
1
app.js
1
app.js
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user