Voicemail: Enhance recording playback options.
This commit is contained in:
parent
349f81ddd0
commit
a770fd878c
|
|
@ -46,27 +46,27 @@
|
||||||
session:execute("playback", "phrase:voicemail_say_message_number:" .. message_status .. ":" .. message_number);
|
session:execute("playback", "phrase:voicemail_say_message_number:" .. message_status .. ":" .. message_number);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--say the caller id number
|
--say the caller id number first (default)
|
||||||
if (session:ready() and caller_id_number ~= nil) then
|
if (
|
||||||
if (vm_say_caller_id_number ~= nil) then
|
session:ready() and
|
||||||
if (vm_say_caller_id_number == "true") then
|
caller_id_number ~= nil and (
|
||||||
session:streamFile(sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/voicemail/vm-from.wav");
|
vm_say_caller_id_number == nil or
|
||||||
session:say(caller_id_number, default_language, "name_spelled", "iterated");
|
vm_say_caller_id_number == "true"
|
||||||
end
|
)) then
|
||||||
end
|
session:streamFile(sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/voicemail/vm-from.wav");
|
||||||
|
session:say(caller_id_number, default_language, "name_spelled", "iterated");
|
||||||
end
|
end
|
||||||
--say the message date
|
--say the message date first (default)
|
||||||
if (session:ready()) then
|
if (
|
||||||
if (string.len(dtmf_digits) == 0) then
|
session:ready() and
|
||||||
if (vm_say_date_time ~= nil) then
|
string.len(dtmf_digits) == 0 and (
|
||||||
if (vm_say_date_time == "true") then
|
vm_say_date_time == nil or
|
||||||
if (current_time_zone ~= nil) then
|
vm_say_date_time == "true"
|
||||||
session:execute("set", "timezone="..current_time_zone.."");
|
)) then
|
||||||
end
|
if (current_time_zone ~= nil) then
|
||||||
session:say(created_epoch, default_language, "current_date_time", "pronounced");
|
session:execute("set", "timezone="..current_time_zone.."");
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
session:say(created_epoch, default_language, "current_date_time", "pronounced");
|
||||||
end
|
end
|
||||||
--get the recordings from the database
|
--get the recordings from the database
|
||||||
if (storage_type == "base64") then
|
if (storage_type == "base64") then
|
||||||
|
|
@ -156,7 +156,28 @@
|
||||||
os.remove(voicemail_dir.."/"..voicemail_id.."/intro_"..uuid.."."..vm_message_ext);
|
os.remove(voicemail_dir.."/"..voicemail_id.."/intro_"..uuid.."."..vm_message_ext);
|
||||||
os.remove(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
os.remove(voicemail_dir.."/"..voicemail_id.."/msg_"..uuid.."."..vm_message_ext);
|
||||||
end
|
end
|
||||||
|
--say the caller id number last (optional)
|
||||||
|
if (
|
||||||
|
session:ready() and
|
||||||
|
caller_id_number ~= nil and
|
||||||
|
vm_say_caller_id_number ~= nil and
|
||||||
|
vm_say_caller_id_number == "last"
|
||||||
|
) then
|
||||||
|
session:streamFile(sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/voicemail/vm-from.wav");
|
||||||
|
session:say(caller_id_number, default_language, "name_spelled", "iterated");
|
||||||
|
end
|
||||||
|
--say the message date last (optional)
|
||||||
|
if (
|
||||||
|
session:ready() and
|
||||||
|
string.len(dtmf_digits) == 0 and
|
||||||
|
vm_say_date_time ~= nil and
|
||||||
|
vm_say_date_time == "last"
|
||||||
|
) 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
|
||||||
--post listen options
|
--post listen options
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
if (string.len(dtmf_digits) == 0) then
|
if (string.len(dtmf_digits) == 0) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue