From e13a8bb69476a41998b310daba52da0553c57f89 Mon Sep 17 00:00:00 2001 From: Errol Samuels Date: Sun, 22 Mar 2015 08:04:03 +0000 Subject: [PATCH] Added remote reboot capability for Aastra phones --- resources/install/scripts/app/event_notify/index.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/install/scripts/app/event_notify/index.lua b/resources/install/scripts/app/event_notify/index.lua index 9d2b5718d2..68f7002c8e 100644 --- a/resources/install/scripts/app/event_notify/index.lua +++ b/resources/install/scripts/app/event_notify/index.lua @@ -21,6 +21,7 @@ -- -- Contributor(s): -- Mark J Crane +-- Errol Samuels --define explode function explode ( seperator, str ) @@ -62,6 +63,16 @@ event:addHeader('host', domain); event:addHeader('content-type', 'application/simple-message-summary'); +--aastra + if (vendor == "aastra") 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 + --cisco if (vendor == "cisco") then if (command == "reboot") then