summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/phones/snom.lua6
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