From de74db14ee020f665ac9db4fb49752a83a3cd9d5 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Wed, 5 Nov 2025 17:24:19 -0700 Subject: [PATCH] Add support for Poly check-sync --- app/devices/resources/classes/device.php | 3 +++ .../resources/scripts/app/event_notify/index.lua | 10 ++++++++++ 2 files changed, 13 insertions(+) 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