mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-01 01:33:49 +00:00
Add check-sync support for Linksys SPA.
This commit is contained in:
@@ -57,6 +57,9 @@ else {
|
||||
if (preg_replace('/^.*?(grandstream).*$/i', '$1', strtolower($agent)) == "grandstream") {
|
||||
$vendor = "grandstream";
|
||||
}
|
||||
if (preg_replace('/^.*?(linksys).*$/i', '$1', strtolower($agent)) == "linksys") {
|
||||
$vendor = "linksys";
|
||||
}
|
||||
if (preg_replace('/^.*?(polycom).*$/i', '$1', strtolower($agent)) == "polycom") {
|
||||
$vendor = "polycom";
|
||||
}
|
||||
|
||||
@@ -85,6 +85,16 @@
|
||||
end
|
||||
end
|
||||
|
||||
--linksys
|
||||
if (vendor == "linksys") then
|
||||
if (command == "reboot") then
|
||||
event:addHeader('event-string', 'reboot=true');
|
||||
end
|
||||
if (command == "check_sync") then
|
||||
event:addHeader('event-string', 'reboot=true');
|
||||
end
|
||||
end
|
||||
|
||||
--polycom
|
||||
if (vendor == "polycom") then
|
||||
if (command == "reboot") then
|
||||
|
||||
Reference in New Issue
Block a user