Update index.lua

This commit is contained in:
FusionPBX
2018-04-09 10:40:05 -06:00
committed by GitHub
parent 99bcd575e2
commit 1217da9668
@@ -85,6 +85,16 @@
end end
end end
--htek
if (vendor == "htek") then
if (command == "reboot") then
event:addHeader('event-string', 'check-sync;reboot=true');
end
if (command == "check_sync") then
event:addHeader('event-string', 'resync');
end
end
--grandstream --grandstream
if (vendor == "grandstream") then if (vendor == "grandstream") then
if (command == "reboot") then if (command == "reboot") then
@@ -105,6 +115,16 @@
end end
end end
--panasonic
if (vendor == "panasonic") then
if (command == "reboot") then
event:addHeader('event-string', 'check-sync;reboot=true');
end
if (command == "check_sync") then
event:addHeader('event-string', 'check-sync;reboot=true');
end
end
--polycom --polycom
if (vendor == "polycom") then if (vendor == "polycom") then
if (command == "reboot") then if (command == "reboot") then
@@ -115,16 +135,6 @@
end end
end end
--yealink
if (vendor == "yealink") then
if (command == "reboot") then
event:addHeader('event-string', 'check-sync;reboot=true');
end
if (command == "check_sync") then
event:addHeader('event-string', 'check-sync;reboot=false');
end
end
--snom --snom
if (vendor == "snom") then if (vendor == "snom") then
if (command == "reboot") then if (command == "reboot") then
@@ -135,13 +145,13 @@
end end
end end
--panasonic --yealink
if (vendor == "panasonic") then if (vendor == "yealink") then
if (command == "reboot") then if (command == "reboot") then
event:addHeader('event-string', 'check-sync;reboot=true'); event:addHeader('event-string', 'check-sync;reboot=true');
end end
if (command == "check_sync") then if (command == "check_sync") then
event:addHeader('event-string', 'check-sync;reboot=true'); event:addHeader('event-string', 'check-sync;reboot=false');
end end
end end