Add check-sync support for Linksys SPA.
This commit is contained in:
parent
dc873eee43
commit
b2d4749559
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue