Fix Call Block Type Setting Check

When setting call_block_matching, the setting was not being evaluated as true because it was looking for 'call block' group when the actual name is 'call_block'.

Adding the underscore fixes this small syntax issue and the setting works correctly.
This commit is contained in:
emaktech
2019-05-28 14:27:29 -04:00
committed by GitHub
parent 164f647eaa
commit 0d78e776db

View File

@@ -89,7 +89,7 @@ This method causes the script to get its manadatory arguments directly from the
-- get the configuration variables from the DB
local db = dbh or Database.new('system')
local settings = Settings.new(db, domain_name, domain_uuid)
local call_block_matching = settings:get('call block', 'call_block_matching', 'text');
local call_block_matching = settings:get('call_block', 'call_block_matching', 'text');
--send to the log
logger("D", "NOTICE", "params are: " .. string.format("'%s', '%s', '%s', '%s'", params["cid_num"],