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") {
|
if (preg_replace('/^.*?(grandstream).*$/i', '$1', strtolower($agent)) == "grandstream") {
|
||||||
$vendor = "grandstream";
|
$vendor = "grandstream";
|
||||||
}
|
}
|
||||||
|
if (preg_replace('/^.*?(linksys).*$/i', '$1', strtolower($agent)) == "linksys") {
|
||||||
|
$vendor = "linksys";
|
||||||
|
}
|
||||||
if (preg_replace('/^.*?(polycom).*$/i', '$1', strtolower($agent)) == "polycom") {
|
if (preg_replace('/^.*?(polycom).*$/i', '$1', strtolower($agent)) == "polycom") {
|
||||||
$vendor = "polycom";
|
$vendor = "polycom";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,6 +85,16 @@
|
|||||||
end
|
end
|
||||||
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
|
--polycom
|
||||||
if (vendor == "polycom") then
|
if (vendor == "polycom") then
|
||||||
if (command == "reboot") then
|
if (command == "reboot") then
|
||||||
|
|||||||
Reference in New Issue
Block a user