From f2a9e5e49421caa33be234b3c5560adbb41f35d9 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 18 Nov 2020 14:30:14 -0700 Subject: [PATCH] Call Block: Set existing with no direction as 'inbound' blocks. --- app/call_block/app_defaults.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/call_block/app_defaults.php b/app/call_block/app_defaults.php index 56c8d4c733..a5ea0a330a 100644 --- a/app/call_block/app_defaults.php +++ b/app/call_block/app_defaults.php @@ -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); + } ?>