fix the voicemail IVR with custom greeting (#1917)
This commit is contained in:
@@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
--play the greeting
|
--play the greeting
|
||||||
function play_greeting()
|
function play_greeting()
|
||||||
|
timeout = 100;
|
||||||
|
tries = 1;
|
||||||
|
max_timeout = 200;
|
||||||
|
|
||||||
--voicemail prompt
|
--voicemail prompt
|
||||||
if (skip_greeting == "true") then
|
if (skip_greeting == "true") then
|
||||||
--skip the greeting
|
--skip the greeting
|
||||||
@@ -82,9 +86,12 @@
|
|||||||
--os.remove(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
--os.remove(voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
||||||
end
|
end
|
||||||
elseif (storage_type == "http_cache") then
|
elseif (storage_type == "http_cache") then
|
||||||
session:execute("playback",storage_path.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
dtmf_digits = session:playAndGetDigits(min_digits, max_digits, tries, timeout, "#", voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav", "", "\\d+", max_timeout);
|
||||||
|
--session:execute("playback",storage_path.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
||||||
else
|
else
|
||||||
session:execute("playback",voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
dtmf_digits = session:playAndGetDigits(min_digits, max_digits, tries, timeout, "#", voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav", "","\\d+", max_timeout);
|
||||||
|
|
||||||
|
--session:execute("playback",voicemail_dir.."/"..voicemail_id.."/greeting_"..greeting_id..".wav");
|
||||||
end
|
end
|
||||||
|
|
||||||
--sleep
|
--sleep
|
||||||
|
|||||||
Reference in New Issue
Block a user