Call Block: Set existing with no direction as 'inbound' blocks.

This commit is contained in:
fusionate 2020-11-18 14:30:14 -07:00
parent ee4ecea937
commit f2a9e5e494
1 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,7 @@
if ($domains_processed == 1) {
//create a view for call block
//create a view for call block
$database = new database;
$database->execute("DROP VIEW view_call_block;", null);
$sql = "CREATE VIEW view_call_block AS ( \n";
@ -40,6 +40,12 @@ if ($domains_processed == 1) {
$database->execute($sql, null);
unset($sql);
//set call blocks to inbound if no direction defined
$sql = "update v_call_block set call_block_direction = 'inbound' where call_block_direction is null ";
$database = new database;
$database->execute($sql, null);
unset($sql);
}
?>