From fb686a23421652f938c1ac5b6368d6f5918a15f5 Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 9 Jan 2013 13:54:33 +0100 Subject: read perimeter configuration from database --- misc/freeswitch/scripts/event/perimeter.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc/freeswitch/scripts/event/perimeter.lua') diff --git a/misc/freeswitch/scripts/event/perimeter.lua b/misc/freeswitch/scripts/event/perimeter.lua index 3babba6..86c50d4 100644 --- a/misc/freeswitch/scripts/event/perimeter.lua +++ b/misc/freeswitch/scripts/event/perimeter.lua @@ -40,7 +40,8 @@ end function Perimeter.init(self) - local config = common.configuration_file.get('/opt/freeswitch/scripts/ini/perimeter.ini'); + require 'common.configuration_table'; + local config = common.configuration_table.get(self.database, 'perimeter'); if config and config.general then self.malicious_contact_count = tonumber(config.general.malicious_contact_count) or MALICIOUS_CONTACT_COUNT; self.malicious_contact_time_span = tonumber(config.general.malicious_contact_time_span) or MALICIOUS_CONTACT_TIME_SPAN; -- cgit v1.2.3