Actualizar incoming.php
gitea/vn-asterisk/pipeline/pr-davidl-asterisk There was a failure building this commit Details
gitea/vn-asterisk/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
David Lopez 2025-03-07 12:50:36 +00:00
parent fe581ec210
commit bce6df9e0e
1 changed files with 5 additions and 0 deletions

View File

@ -35,7 +35,12 @@ $prefixLen = strlen($countryPrefix);
if (substr($callerId, 0, $prefixLen) === $countryPrefix)
$callerId = substr($callerId, $prefixLen);
// Checks if phone number is on the blacklist
if ($db->getValue('SELECT COUNT(*) > 0 FROM blacklist WHERE phone = #', [$callerId])) {
Agi::exec('HANGUP');
exit;
// Checks schedules
if ($countryCode) {