diff options
author | Peter Kozak <spag@golwen.net> | 2013-06-12 09:15:06 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-06-12 09:15:06 +0200 |
commit | 2834eec92f1c92e6a80e5e1e4f5a78f50672c7a8 (patch) | |
tree | 01292b5bfc8af7ae4357a56862bef167b64c84dc /misc/freeswitch/scripts/common/gateway.lua | |
parent | 4494349c43dbe93500f0edcb2dd11df43e0b729a (diff) |
retrieve domain
Diffstat (limited to 'misc/freeswitch/scripts/common/gateway.lua')
-rw-r--r-- | misc/freeswitch/scripts/common/gateway.lua | 3 |
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; |