mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add support for Poly check-sync
This commit is contained in:
@@ -408,6 +408,9 @@
|
|||||||
if (preg_replace('/^.*?(polycom).*$/i', '$1', $agent) == "polycom") {
|
if (preg_replace('/^.*?(polycom).*$/i', '$1', $agent) == "polycom") {
|
||||||
return "polycom";
|
return "polycom";
|
||||||
}
|
}
|
||||||
|
if (preg_replace('/^.*?(poly).*$/i', '$1', $agent) == "poly") {
|
||||||
|
return "poly";
|
||||||
|
}
|
||||||
if (preg_replace('/^.*?(yealink).*$/i', '$1', $agent) == "yealink") {
|
if (preg_replace('/^.*?(yealink).*$/i', '$1', $agent) == "yealink") {
|
||||||
return "yealink";
|
return "yealink";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,6 +175,16 @@
|
|||||||
end
|
end
|
||||||
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
|
--snom
|
||||||
if (vendor == "snom") then
|
if (vendor == "snom") then
|
||||||
if (command == "reboot") then
|
if (command == "reboot") then
|
||||||
|
|||||||
Reference in New Issue
Block a user