Update index.lua
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-- Part of FusionPBX
|
-- 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.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
@@ -384,6 +384,13 @@
|
|||||||
--leave a message
|
--leave a message
|
||||||
if (voicemail_action == "save") then
|
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
|
--check the voicemail quota
|
||||||
if (voicemail_uuid ~= nil and vm_disk_quota ~= nil) then
|
if (voicemail_uuid ~= nil and vm_disk_quota ~= nil) then
|
||||||
--get voicemail message seconds
|
--get voicemail message seconds
|
||||||
|
|||||||
Reference in New Issue
Block a user