Compare commits
No commits in common. "62d2f4a7d18377cca13c4574882e5056845f78b8" and "e517a259a9c31849e369b1af764a770f54836d07" have entirely different histories.
62d2f4a7d1
...
e517a259a9
4
index.js
4
index.js
|
|
@ -30,7 +30,7 @@ const cfTypes = {
|
|||
|
||||
const main = () => {
|
||||
var respData = [];
|
||||
console.log('checking')
|
||||
|
||||
// getList for CF, CFB, CFU
|
||||
sock.getList({
|
||||
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.`);
|
||||
})
|
||||
}
|
||||
};
|
||||
setTimeout(main, 5000); // Repeat every 60 seconds
|
||||
};
|
||||
});
|
||||
});
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue