Update index.lua

Prevent an error when the voicemail_uuid is empty when the voicemail box is disabled.
This commit is contained in:
FusionPBX 2017-01-27 12:22:12 -07:00 committed by GitHub
parent ba64113e51
commit 641e026474
1 changed files with 21 additions and 21 deletions

View File

@ -320,6 +320,9 @@
--leave a message
if (voicemail_action == "save") then
--valid voicemail
if (voicemail_uuid ~= nil) then
--check the voicemail quota
if (vm_disk_quota) then
--get voicemail message seconds
@ -341,9 +344,6 @@
end
end
--valid voicemail
if (voicemail_uuid ~= nil) then
--play the greeting
timeouts = 0;
play_greeting();