davidl-asterisk2 #5

Merged
juan merged 3 commits from davidl-asterisk2 into master 2025-03-07 13:02:06 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit bce6df9e0e - Show all commits

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) {