diff options
author | spag <spag@golwen.net> | 2013-01-14 09:47:22 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-14 09:47:22 +0100 |
commit | 24a60c41586dbfa64da30acea1749376bebbef46 (patch) | |
tree | 3a4a02e107199f6bbe35ba8f79c918d9610c4048 /misc/freeswitch | |
parent | 4670a33c504f36ddb93cf8ed846c65ceb6810c82 (diff) |
register setting
Diffstat (limited to 'misc/freeswitch')
-rw-r--r-- | misc/freeswitch/scripts/common/gateway.lua | 4 |
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 |