Added remote reboot capability for Aastra phones

This commit is contained in:
Errol Samuels
2015-03-22 08:04:03 +00:00
parent d93c5198df
commit e13a8bb694

View File

@@ -21,6 +21,7 @@
--
-- Contributor(s):
-- Mark J Crane <markjcrane@fusionpbx.com>
-- Errol Samuels <voiptology@gmail.com>
--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