diff --git a/app/devices/resources/classes/device.php b/app/devices/resources/classes/device.php index 4789c726ad..f6a3a0a8eb 100644 --- a/app/devices/resources/classes/device.php +++ b/app/devices/resources/classes/device.php @@ -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 ""; } diff --git a/resources/install/scripts/app/event_notify/index.lua b/resources/install/scripts/app/event_notify/index.lua index b32ecd5f93..42aa5c11f8 100644 --- a/resources/install/scripts/app/event_notify/index.lua +++ b/resources/install/scripts/app/event_notify/index.lua @@ -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();