Move the connection string and add new local settings.

This commit is contained in:
FusionPBX 2020-05-18 13:44:17 -06:00 committed by GitHub
parent b09a32abb0
commit e08c49df10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,11 @@
call_direction = "local";
end
--connect to the database
local dbh = Database.new('system');
--set the strategy
local settings = Settings.new(dbh, domain_name, domain_uuid);
local follow_me_strategy = settings:get('follow_me', 'strategy', 'text') or 'enterprise'; --simultaneous, enterprise
--include json library
@ -90,9 +94,6 @@
return count, destination_number, toll_allow;
end
--connect to the database
local dbh = Database.new('system');
--get the forward busy
--cmd = "user_data ".. destination_number .."@"..domain_name.." var forward_busy_enabled=";
--forward_busy_enabled = trim(api:executeString(cmd));