Add support for Poly check-sync

This commit is contained in:
FusionPBX
2025-11-05 17:38:40 -07:00
committed by GitHub
parent 25bce85ff3
commit c5a5876637
2 changed files with 13 additions and 0 deletions

View File

@@ -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";
}

View File

@@ -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