summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/common
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-14 03:57:06 -0400
committerPeter Kozak <spag@golwen.net>2013-03-14 03:57:06 -0400
commit9f51f0287bb523b62804a1bda6740c32d13e68b7 (patch)
treeed61f922319b01c10f78a5da0f0a8ac64e7057b1 /misc/freeswitch/scripts/common
parent25d58b40dfb51ddf6f566ded43c335146ac5fbb7 (diff)
no password if blank
Diffstat (limited to 'misc/freeswitch/scripts/common')
-rw-r--r--misc/freeswitch/scripts/common/gateway.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/freeswitch/scripts/common/gateway.lua b/misc/freeswitch/scripts/common/gateway.lua
index e32a790..ac38326 100644
--- a/misc/freeswitch/scripts/common/gateway.lua
+++ b/misc/freeswitch/scripts/common/gateway.lua
@@ -231,9 +231,7 @@ function Gateway.parameters_build(self, gateway_id, technology)
parameters.register = common.str.to_b(settings.register);
end
- if common.str.blank(settings.password) then
- parameters.password = 'gateway' .. gateway_id;
- else
+ if not common.str.blank(settings.password) then
parameters.password = settings.password;
end