diff options
author | spag <spag@golwen.net> | 2013-01-24 15:59:49 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-24 15:59:49 +0100 |
commit | 04eea0955c4a7b6d183fa7545b61c0732b8b41b8 (patch) | |
tree | 8fc8e1d385ed41b82562b0bc08460fbe42ddc81c | |
parent | d8ad6ffe483156ea5474e7c1874ea618d44ba306 (diff) |
unused variables
-rw-r--r-- | misc/freeswitch/scripts/phones/snom.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/freeswitch/scripts/phones/snom.lua b/misc/freeswitch/scripts/phones/snom.lua index ef3ab93..bb17796 100644 --- a/misc/freeswitch/scripts/phones/snom.lua +++ b/misc/freeswitch/scripts/phones/snom.lua @@ -56,9 +56,5 @@ function Snom.resync_http(self, ip_address, http_user, http_password, http_port) local command = 'http_request.lua snom_resync http://' .. tostring(ip_address):gsub('[^0-9%.]', '') .. port_str .. '/advanced.htm?reboot=Reboot ' .. (http_user or '') .. ' ' .. (http_password or ''); require 'common.fapi' - common.fapi.FApi:new():execute('luarun', command); - - if result and tonumber(result) == 0 then - return true; - end + return common.fapi.FApi:new():execute('luarun', command); end |