Record greeting and name both have option 1 to replay the message. For this reason playing the greeting seems redundant.

This commit is contained in:
Mark Crane
2013-01-15 19:00:49 +00:00
parent b574877335
commit 4a18a37617
+6 -6
View File
@@ -1531,11 +1531,11 @@
end end
--play the greeting --play the greeting
if (session:ready()) then --if (session:ready()) then
if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav")) then -- if (file_exists(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav")) then
session:streamFile(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav"); -- session:streamFile(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
end -- end
end --end
--option to play, save, and re-record the greeting --option to play, save, and re-record the greeting
if (session:ready()) then if (session:ready()) then
@@ -1669,7 +1669,7 @@
--session:execute("record", voicemail_dir.."/"..uuid.." 180 200"); --session:execute("record", voicemail_dir.."/"..uuid.." 180 200");
--play the name --play the name
session:streamFile(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav"); --session:streamFile(voicemail_dir.."/"..voicemail_id.."/recorded_name.wav");
--option to play, save, and re-record the name --option to play, save, and re-record the name
if (session:ready()) then if (session:ready()) then