mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-07 04:03:49 +00:00
Update index.lua
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user