Merge dev to main #1
1
index.js
1
index.js
|
|
@ -87,7 +87,6 @@ const main = () => {
|
|||
}).then(() => {
|
||||
console.log(`Found ${respData.length} call forwards.`);
|
||||
for (let cf of respData) {
|
||||
console.log(`Extension ${cf.extension} has ${cfTypes[cf.type]} call forward to ${cf.target}`);
|
||||
// Check if forward target is anything in the 700-800 range, or is a number in the blocked list
|
||||
if ((cf.target >= 700 && cf.target < 800) || blocked.includes(cf.target)) {
|
||||
// Violation. Remove call forward from db.
|
||||
|
|
|
|||
Loading…
Reference in a new issue