diff --git a/app/devices/resources/classes/device.php b/app/devices/resources/classes/device.php index 5e383fba9c..9e3e940349 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -408,6 +408,9 @@ if (preg_replace('/^.*?(polycom).*$/i', '$1', $agent) == "polycom") { return "polycom"; } + if (preg_replace('/^.*?(poly).*$/i', '$1', $agent) == "poly") { + return "poly"; + } if (preg_replace('/^.*?(yealink).*$/i', '$1', $agent) == "yealink") { return "yealink"; } diff --git a/app/switch/resources/scripts/app/event_notify/index.lua b/app/switch/resources/scripts/app/event_notify/index.lua index 3411bf0afe..bfc1205b87 100644 --- a/app/switch/resources/scripts/app/event_notify/index.lua +++ b/app/switch/resources/scripts/app/event_notify/index.lua @@ -175,6 +175,16 @@ end end +--poly + if (vendor == "poly") then + if (command == "reboot") then + event:addHeader('event-string', 'check-sync'); + end + if (command == "check_sync") then + event:addHeader('event-string', 'check-sync'); + end + end + --snom if (vendor == "snom") then if (command == "reboot") then