From 597955da06d7c031b762e4a40dec7e16a7a0faa7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 1 Jan 2021 23:20:17 -0700 Subject: [PATCH] Add a feature for global call block. --- app/scripts/resources/scripts/app/call_block/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/resources/scripts/app/call_block/index.lua b/app/scripts/resources/scripts/app/call_block/index.lua index 48aa13a589..7e82784060 100644 --- a/app/scripts/resources/scripts/app/call_block/index.lua +++ b/app/scripts/resources/scripts/app/call_block/index.lua @@ -93,7 +93,7 @@ --check to see if the call should be blocked sql = "select * from v_call_block\n"; - sql = sql .. "where domain_uuid = :domain_uuid \n"; + sql = sql .. "where (domain_uuid = :domain_uuid or domain_uuid is null) \n"; sql = sql .. "and call_block_enabled = 'true' \n"; sql = sql .. "and call_block_direction = :call_block_direction \n"; sql = sql .. "and ( \n"; @@ -244,4 +244,4 @@ freeswitch.consoleLog("notice", "[call_block] " .. call_block_cache_key .. " source: cache\n"); end end - end \ No newline at end of file + end