Actualizar incoming.php
This commit is contained in:
parent
fe581ec210
commit
bce6df9e0e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue