mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-07-24 21:01:49 +00:00
revert one change from prev checkin as it impacted testing
This commit is contained in:
@@ -49,6 +49,15 @@ module.exports = (srf, logger) => {
|
||||
}
|
||||
});
|
||||
|
||||
if (process.env.JAMBONES_FEATURE_SERVERS) {
|
||||
dynamic = false;
|
||||
process.env.JAMBONES_FEATURE_SERVERS
|
||||
.split(',')
|
||||
.map((hp) => hp.trim())
|
||||
.forEach((uri) => contacts.set(uri, {active: 0, calls: 0}));
|
||||
debug(`using static list of feature servers: ${[ ...contacts]}`);
|
||||
}
|
||||
|
||||
if (dynamic) {
|
||||
const CHECK_INTERVAL = 35;
|
||||
setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user