send closed status on OPTIONS ping if media server is down

This commit is contained in:
Dave Horton
2020-03-30 10:56:42 -04:00
parent 56f7a0755c
commit a93c348b1b
2 changed files with 8 additions and 34 deletions

View File

@@ -24,7 +24,7 @@ function initMS(logger, wrapper, ms) {
function installSrfLocals(srf, logger) {
assert(!srf.locals.dbHelpers);
const {getSBC, getSrf} = require('./sbc-pinger')(logger);
const {getSBC} = require('./sbc-pinger')(logger);
const StatsCollector = require('jambonz-stats-collector');
const stats = srf.locals.stats = new StatsCollector(logger);
@@ -134,7 +134,6 @@ function installSrfLocals(srf, logger) {
ipv4: localIp,
serviceUrl: `http://${localIp}:${PORT}`,
getSBC,
getSrf,
getFreeswitch,
stats: stats
});