Skip to content

Commit a21269c

Browse files
rhondahollisrhonda hollis
andauthored
remove send_options_bots array (#129)
fixes ticket #1983 Co-authored-by: rhonda hollis <rhonda@jambonz.org>
1 parent 6f9c629 commit a21269c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/sip-trunk-options-ping.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const { addSipGatewayToBlacklist, removeSipGatewayFromBlacklist, isSipGatewayBla
22
const {OPTIONS_RESPONSE_REMOVE} = require('./config');
33

44
const send_options_gateways = [];
5-
const send_options_bots = [];
65

76
class OptionsBot {
87
constructor(logger, gateway) {
@@ -93,6 +92,7 @@ class OptionsBot {
9392
}
9493

9594
module.exports = async(logger, srf) => {
95+
9696
const updateSipGatewayOptsBot = async(logger, srf) => {
9797
try {
9898

@@ -105,10 +105,9 @@ module.exports = async(logger, srf) => {
105105
send_options_gateways.push(...gws);
106106
for (const g of send_options_gateways) {
107107
const optsBot = new OptionsBot(logger, g);
108-
send_options_bots.push(optsBot);
109108
optsBot.options(srf);
110109
}
111-
logger.debug(`updateSipGatewayOptsBot: we have started ${send_options_bots.length} optionsBots`);
110+
logger.debug(`updateSipGatewayOptsBot: we have started ${send_options_gateways.length} optionsBots`);
112111
}
113112
} catch (err) {
114113
logger.error({ err }, 'updateSipGatewayOptsBot Error');

test/regbot-tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ test('trunk register tests', (t) => {
7272
})
7373
.then(() => {
7474
const obj = srf.locals.regbotStatus();
75-
//console.log({obj}, 'regbot status after adding new gateway');
7675
return t.ok(obj.total === 2 && obj.registered === 1, 'successfully added gateway that tests failure result');
7776
})
7877
.then(() => {

0 commit comments

Comments
 (0)