summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/common/gateway.lua
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-14 09:47:22 +0100
committerspag <spag@golwen.net>2013-01-14 09:47:22 +0100
commit24a60c41586dbfa64da30acea1749376bebbef46 (patch)
tree3a4a02e107199f6bbe35ba8f79c918d9610c4048 /misc/freeswitch/scripts/common/gateway.lua
parent4670a33c504f36ddb93cf8ed846c65ceb6810c82 (diff)
register setting
Diffstat (limited to 'misc/freeswitch/scripts/common/gateway.lua')
-rw-r--r--misc/freeswitch/scripts/common/gateway.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/gateway.lua b/misc/freeswitch/scripts/common/gateway.lua
index 2c50c0f..9c09a22 100644
--- a/misc/freeswitch/scripts/common/gateway.lua
+++ b/misc/freeswitch/scripts/common/gateway.lua
@@ -108,6 +108,10 @@ function Gateway.parameters_build(self, gateway_id)
parameters.register = true;
end
+ if not common.str.blank(settings.register) then
+ parameters.register = common.str.to_b(settings.register);
+ end
+
if common.str.blank(settings.password) then
parameters.password = 'gateway' .. gateway_id;
else