less log
This commit is contained in:
parent
43c81ad433
commit
e517a259a9
1
index.js
1
index.js
|
|
@ -87,7 +87,6 @@ const main = () => {
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log(`Found ${respData.length} call forwards.`);
|
console.log(`Found ${respData.length} call forwards.`);
|
||||||
for (let cf of respData) {
|
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
|
// 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)) {
|
if ((cf.target >= 700 && cf.target < 800) || blocked.includes(cf.target)) {
|
||||||
// Violation. Remove call forward from db.
|
// Violation. Remove call forward from db.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue