mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Add. Support remote reboot Panasonic devices. (#2326)
Tested with Panasonic KX-TGP500 Firmware 22.90 User agent string `Panasonic_KX-TGP500B09/22.90 (<MAC>)`
This commit is contained in:
committed by
FusionPBX
parent
ee65f04ef3
commit
080763cee7
@@ -154,8 +154,9 @@ include "root.php";
|
||||
if (preg_match('/^es\d\d\d.*$/i', $agent)) {
|
||||
return "escene";
|
||||
}
|
||||
}
|
||||
|
||||
if (preg_match('/^.*?panasonic.*$/i', $agent)) {
|
||||
return "panasonic";
|
||||
}
|
||||
// unknown vendor
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
event:addHeader('event-string', 'check-sync;reboot=false');
|
||||
end
|
||||
end
|
||||
|
||||
--snom
|
||||
if (vendor == "snom") then
|
||||
if (command == "reboot") then
|
||||
@@ -134,6 +135,16 @@
|
||||
end
|
||||
end
|
||||
|
||||
--panasonic
|
||||
if (vendor == "panasonic") then
|
||||
if (command == "reboot") then
|
||||
event:addHeader('event-string', 'check-sync;reboot=true');
|
||||
end
|
||||
if (command == "check_sync") then
|
||||
event:addHeader('event-string', 'check-sync;reboot=true');
|
||||
end
|
||||
end
|
||||
|
||||
--send the event
|
||||
event:fire();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user