From c5a5876637eb1886d7aa0a6bae14177a6af2e77a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 5 Nov 2025 17:38:40 -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 3272c18e8f..18be49157e 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -375,6 +375,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