update with blacklist
gitea/vn-asterisk/pipeline/head There was a failure building this commit
Details
gitea/vn-asterisk/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
852a1e1e0f
commit
bb53757c11
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue