mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Added remote reboot capability for Aastra phones
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user