Add check-sync support for Linksys SPA.

This commit is contained in:
markjcrane
2015-12-01 20:48:47 -07:00
parent dc873eee43
commit b2d4749559
2 changed files with 13 additions and 0 deletions

View File

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

View File

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