mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update index.lua
This commit is contained in:
@@ -85,6 +85,16 @@
|
||||
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
|
||||
if (vendor == "grandstream") then
|
||||
if (command == "reboot") then
|
||||
@@ -105,6 +115,16 @@
|
||||
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
|
||||
if (vendor == "polycom") then
|
||||
if (command == "reboot") then
|
||||
@@ -115,16 +135,6 @@
|
||||
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
|
||||
if (vendor == "snom") then
|
||||
if (command == "reboot") then
|
||||
@@ -135,13 +145,13 @@
|
||||
end
|
||||
end
|
||||
|
||||
--panasonic
|
||||
if (vendor == "panasonic") then
|
||||
--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=true');
|
||||
event:addHeader('event-string', 'check-sync;reboot=false');
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user