Move the connection string and add new local settings.
This commit is contained in:
parent
b09a32abb0
commit
e08c49df10
|
|
@ -50,7 +50,11 @@
|
||||||
call_direction = "local";
|
call_direction = "local";
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--connect to the database
|
||||||
|
local dbh = Database.new('system');
|
||||||
|
|
||||||
--set the strategy
|
--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
|
local follow_me_strategy = settings:get('follow_me', 'strategy', 'text') or 'enterprise'; --simultaneous, enterprise
|
||||||
|
|
||||||
--include json library
|
--include json library
|
||||||
|
|
@ -90,9 +94,6 @@
|
||||||
return count, destination_number, toll_allow;
|
return count, destination_number, toll_allow;
|
||||||
end
|
end
|
||||||
|
|
||||||
--connect to the database
|
|
||||||
local dbh = Database.new('system');
|
|
||||||
|
|
||||||
--get the forward busy
|
--get the forward busy
|
||||||
--cmd = "user_data ".. destination_number .."@"..domain_name.." var forward_busy_enabled=";
|
--cmd = "user_data ".. destination_number .."@"..domain_name.." var forward_busy_enabled=";
|
||||||
--forward_busy_enabled = trim(api:executeString(cmd));
|
--forward_busy_enabled = trim(api:executeString(cmd));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue