Update listen_to_recording.lua

This commit is contained in:
FusionPBX 2017-06-06 21:16:55 -06:00 committed by GitHub
parent 8403a806cc
commit 7e6d4d3c50
1 changed files with 7 additions and 3 deletions

View File

@ -64,10 +64,14 @@
--say the message date
if (session:ready()) then
if (string.len(dtmf_digits) == 0) then
if (current_time_zone ~= nil) then
session:execute("set", "timezone="..current_time_zone.."");
if (vm_say_date_time ~= nil) then
if (vm_say_date_time == "true") then
if (current_time_zone ~= nil) then
session:execute("set", "timezone="..current_time_zone.."");
end
session:say(created_epoch, default_language, "current_date_time", "pronounced");
end
end
session:say(created_epoch, default_language, "current_date_time", "pronounced");
end
end
--get the recordings from the database