Update index.lua

This commit is contained in:
FusionPBX 2018-02-22 10:12:45 -07:00 committed by GitHub
parent 6b4fecd349
commit c05fb67ddc
1 changed files with 6 additions and 2 deletions

View File

@ -55,8 +55,12 @@
--get the domain_uuid
domain_uuid = session:getVariable("domain_uuid");
--get the action
--get the variables
action = session:getVariable("action");
reboot = session:getVariable("reboot");
--set defaults
if (not reboot) then reboot = 'true'; end
--set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language");
@ -232,7 +236,7 @@
event:addHeader('host', domain);
event:addHeader('content-type', 'application/simple-message-summary');
--check sync
event:addHeader('event-string', 'check-sync;reboot=true');
event:addHeader('event-string', 'check-sync;reboot='..reboot);
--send the event
event:fire();
end