summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-12 09:15:06 +0200
committerPeter Kozak <spag@golwen.net>2013-06-12 09:15:06 +0200
commit2834eec92f1c92e6a80e5e1e4f5a78f50672c7a8 (patch)
tree01292b5bfc8af7ae4357a56862bef167b64c84dc /misc
parent4494349c43dbe93500f0edcb2dd11df43e0b729a (diff)
retrieve domain
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/common/gateway.lua3
1 files changed, 3 insertions, 0 deletions
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;