registrations panel reboot options (extended)

This commit is contained in:
Nuno Miguel Reis
2014-01-22 21:39:27 +00:00
parent bf831a7bf5
commit 8f1f5d4130
2 changed files with 18 additions and 6 deletions

View File

@@ -67,9 +67,15 @@
event:addHeader('event-string', 'check-sync;reboot=true');
end
end
--snom
if (vendor == "snom") then
if (command == "reboot") then
event:addHeader('event-string', 'check-sync;reboot=true');
end
end
--send the event
event:fire();
--log the event
freeswitch.consoleLog("notice", "[event_notify] command "..command.." "..user.."@"..domain.." vendor "..vendor.."\n");
freeswitch.consoleLog("notice", "[event_notify] command "..command.." "..user.."@"..domain.." vendor "..tostring(vendor).."\n");