Call Block: Set existing with no direction as 'inbound' blocks.
This commit is contained in:
parent
ee4ecea937
commit
f2a9e5e494
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue