diff options
author | spag <spag@golwen.net> | 2013-01-09 13:54:33 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-09 13:54:33 +0100 |
commit | fb686a23421652f938c1ac5b6368d6f5918a15f5 (patch) | |
tree | f7cb3742fa2b877ff033af3796d677b0992991f8 /misc/freeswitch/scripts | |
parent | 706d34820b236d28e7dd12ba90dfc1dd585d698f (diff) |
read perimeter configuration from database
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/event/perimeter.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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; |