From bce6df9e0e9ff123827989e58323a436c3b1db06 Mon Sep 17 00:00:00 2001 From: David Lopez Date: Fri, 7 Mar 2025 12:50:36 +0000 Subject: [PATCH] Actualizar incoming.php --- incoming.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/incoming.php b/incoming.php index 63dadc0..450a801 100755 --- a/incoming.php +++ b/incoming.php @@ -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) {