mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
send closed status on OPTIONS ping if media server is down
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user