summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-18 12:18:39 +0100
committerspag <spag@golwen.net>2013-01-18 12:18:39 +0100
commitb5b1a19dd00eb8455ea21072bdd8249c82172619 (patch)
tree18c2a87f9609c7ade7abbce2b476f7b8897e5227 /misc
parent5e46709cadac227cbe5a2459a48d284ad657db36 (diff)
save code lines
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/event_manager.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/freeswitch/scripts/event_manager.lua b/misc/freeswitch/scripts/event_manager.lua
index 0e3c0e0..707b8a2 100644
--- a/misc/freeswitch/scripts/event_manager.lua
+++ b/misc/freeswitch/scripts/event_manager.lua
@@ -17,10 +17,9 @@ if not database:connected() then
end
require "configuration.sip"
-local sip = configuration.sip.Sip:new{ log = log, database = database }
+local domains = configuration.sip.Sip:new{ log = log, database = database }:domains();
local domain = '127.0.0.1';
-local domains = sip:domains();
if domains[1] then
domain = domains[1]['host'];
else