From 1217da9668daad443daf80a6d1cf09a9fc0a19b3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 9 Apr 2018 10:40:05 -0600 Subject: [PATCH] Update index.lua --- .../scripts/app/event_notify/index.lua | 36 ++++++++++++------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/resources/install/scripts/app/event_notify/index.lua b/resources/install/scripts/app/event_notify/index.lua index 215d975dc8..2e8c5c333d 100644 --- a/resources/install/scripts/app/event_notify/index.lua +++ b/resources/install/scripts/app/event_notify/index.lua @@ -85,6 +85,16 @@ end end +--htek + if (vendor == "htek") then + if (command == "reboot") then + event:addHeader('event-string', 'check-sync;reboot=true'); + end + if (command == "check_sync") then + event:addHeader('event-string', 'resync'); + end + end + --grandstream if (vendor == "grandstream") then if (command == "reboot") then @@ -105,6 +115,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 + --polycom if (vendor == "polycom") then if (command == "reboot") then @@ -115,16 +135,6 @@ end end ---yealink - if (vendor == "yealink") 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=false'); - end - end - --snom if (vendor == "snom") then if (command == "reboot") then @@ -135,13 +145,13 @@ end end ---panasonic - if (vendor == "panasonic") then +--yealink + if (vendor == "yealink") 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'); + event:addHeader('event-string', 'check-sync;reboot=false'); end end