From 2834eec92f1c92e6a80e5e1e4f5a78f50672c7a8 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 12 Jun 2013 09:15:06 +0200 Subject: retrieve domain --- misc/freeswitch/scripts/common/gateway.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'misc/freeswitch') diff --git a/misc/freeswitch/scripts/common/gateway.lua b/misc/freeswitch/scripts/common/gateway.lua index 0c6ab1c..09e8c4b 100644 --- a/misc/freeswitch/scripts/common/gateway.lua +++ b/misc/freeswitch/scripts/common/gateway.lua @@ -61,6 +61,9 @@ function Gateway.find_by_id(self, id) if gateway then gateway.settings = self:config_table_get('gateway_settings', gateway.id); + if common.str.blank(gateway.domain) then + gateway.domain = gateway.settings.domain; + end end return gateway; -- cgit v1.2.3