update with blacklist
gitea/vn-asterisk/pipeline/head There was a failure building this commit Details

This commit is contained in:
David Domenech 2025-03-07 12:36:21 +00:00
parent 852a1e1e0f
commit bb53757c11
1 changed files with 7 additions and 0 deletions

View File

@ -85,3 +85,10 @@ if ($clientId) {
Agi::exec("SET VARIABLE ARG4 \"{$client->notificationEmail}\"");
}
}
// Checks if phone number is on the blacklist
if ($db->getValue('SELECT COUNT(*) > 0 FROM blacklist WHERE phone = #', [$callerId])) {
Agi::exec('HANGUP');
exit;
}