Update index.lua

This commit is contained in:
FusionPBX 2019-03-16 03:20:16 -06:00 committed by GitHub
parent d40cf7bd0f
commit 8a8a3e514a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
-- Part of FusionPBX
-- Copyright (C) 2013-2017 Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2013-2019 Mark J Crane <markjcrane@fusionpbx.com>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
@ -384,6 +384,13 @@
--leave a message
if (voicemail_action == "save") then
--set the variables
if (session:ready()) then
session:setVariable("missed_call", "true");
session:setVariable("voicemail_answer_stamp", api:execute("strftime"));
session:setVariable("voicemail_answer_epoch", api:execute("strepoch"));
end
--check the voicemail quota
if (voicemail_uuid ~= nil and vm_disk_quota ~= nil) then
--get voicemail message seconds