Added remote reboot capability for Aastra phones
This commit is contained in:
parent
d93c5198df
commit
e13a8bb694
|
|
@ -21,6 +21,7 @@
|
||||||
--
|
--
|
||||||
-- Contributor(s):
|
-- Contributor(s):
|
||||||
-- Mark J Crane <markjcrane@fusionpbx.com>
|
-- Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
|
-- Errol Samuels <voiptology@gmail.com>
|
||||||
|
|
||||||
--define explode
|
--define explode
|
||||||
function explode ( seperator, str )
|
function explode ( seperator, str )
|
||||||
|
|
@ -62,6 +63,16 @@
|
||||||
event:addHeader('host', domain);
|
event:addHeader('host', domain);
|
||||||
event:addHeader('content-type', 'application/simple-message-summary');
|
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
|
--cisco
|
||||||
if (vendor == "cisco") then
|
if (vendor == "cisco") then
|
||||||
if (command == "reboot") then
|
if (command == "reboot") then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue