Update listen_to_recording.lua
This commit is contained in:
parent
8403a806cc
commit
7e6d4d3c50
|
|
@ -64,12 +64,16 @@
|
||||||
--say the message date
|
--say the message date
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
if (string.len(dtmf_digits) == 0) then
|
if (string.len(dtmf_digits) == 0) then
|
||||||
|
if (vm_say_date_time ~= nil) then
|
||||||
|
if (vm_say_date_time == "true") then
|
||||||
if (current_time_zone ~= nil) then
|
if (current_time_zone ~= nil) then
|
||||||
session:execute("set", "timezone="..current_time_zone.."");
|
session:execute("set", "timezone="..current_time_zone.."");
|
||||||
end
|
end
|
||||||
session:say(created_epoch, default_language, "current_date_time", "pronounced");
|
session:say(created_epoch, default_language, "current_date_time", "pronounced");
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
--get the recordings from the database
|
--get the recordings from the database
|
||||||
if (storage_type == "base64") then
|
if (storage_type == "base64") then
|
||||||
local dbh = Database.new('system', 'base64/read')
|
local dbh = Database.new('system', 'base64/read')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue