diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-14 03:57:06 -0400 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-14 03:57:06 -0400 |
commit | 9f51f0287bb523b62804a1bda6740c32d13e68b7 (patch) | |
tree | ed61f922319b01c10f78a5da0f0a8ac64e7057b1 | |
parent | 25d58b40dfb51ddf6f566ded43c335146ac5fbb7 (diff) |
no password if blank
-rw-r--r-- | misc/freeswitch/scripts/common/gateway.lua | 4 |
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 |