Compare commits
2 commits
e517a259a9
...
62d2f4a7d1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62d2f4a7d1 | ||
|
|
73d56cc8c3 |
4
index.js
4
index.js
|
|
@ -30,7 +30,7 @@ const cfTypes = {
|
||||||
|
|
||||||
const main = () => {
|
const main = () => {
|
||||||
var respData = [];
|
var respData = [];
|
||||||
|
console.log('checking')
|
||||||
// getList for CF, CFB, CFU
|
// getList for CF, CFB, CFU
|
||||||
sock.getList({
|
sock.getList({
|
||||||
action: 'DBGetTree',
|
action: 'DBGetTree',
|
||||||
|
|
@ -100,8 +100,8 @@ const main = () => {
|
||||||
hook.send(`:no_entry: **Call Forward Removed** :no_entry:\nExtension **${cf.extension}** had a **${cfTypes[cf.type]}** call forward to **${cf.target}** The call forward has been removed.`);
|
hook.send(`:no_entry: **Call Forward Removed** :no_entry:\nExtension **${cf.extension}** had a **${cfTypes[cf.type]}** call forward to **${cf.target}** The call forward has been removed.`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
setTimeout(main, 5000); // Repeat every 60 seconds
|
|
||||||
};
|
};
|
||||||
|
setTimeout(main, 5000); // Repeat every 60 seconds
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue