diff --git a/app/registrations/cmd.php b/app/registrations/cmd.php index 73f70f12b8..6a010d125d 100644 --- a/app/registrations/cmd.php +++ b/app/registrations/cmd.php @@ -54,6 +54,9 @@ else { if (preg_replace('/^.*?(cisco).*$/i', '$1', strtolower($agent)) == "cisco") { $vendor = "cisco"; } + if (preg_replace('/^.*?(cisco\/spa).*$/i', '$1', strtolower($agent)) == "cisco/spa") { + $vendor = "cisco-spa"; + } if (preg_replace('/^.*?(grandstream).*$/i', '$1', strtolower($agent)) == "grandstream") { $vendor = "grandstream"; } diff --git a/resources/install/scripts/app/event_notify/index.lua b/resources/install/scripts/app/event_notify/index.lua index e2634eae32..b32ecd5f93 100644 --- a/resources/install/scripts/app/event_notify/index.lua +++ b/resources/install/scripts/app/event_notify/index.lua @@ -67,6 +67,16 @@ --cisco if (vendor == "cisco") then + if (command == "reboot") then + event:addHeader('event-string', 'check-sync'); + end + if (command == "check_sync") then + event:addHeader('event-string', 'check-sync'); + end + end + +--cisco-spa + if (vendor == "cisco-spa") then if (command == "reboot") then event:addHeader('event-string', 'reboot=true'); end