mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
[voicemail] Add # option to go to next recording without saving the message (#5973)
This useful for shared voicemail boxes and a voicemail is meant for someone else or a person doesn't want yet to mark the voicemail as saved
This commit is contained in:
@@ -181,7 +181,7 @@
|
||||
--post listen options
|
||||
if (session:ready()) then
|
||||
if (string.len(dtmf_digits) == 0) then
|
||||
dtmf_digits = session:playAndGetDigits(1, 1, max_tries, digit_timeout, "#", "phrase:voicemail_listen_file_options:1:2:5:7:8:9:0", "", "\\d+");
|
||||
dtmf_digits = session:playAndGetDigits(1, 1, max_tries, digit_timeout, "", "phrase:voicemail_listen_file_options:1:2:5:7:8:9:0", "", "^[\\d\\*#]$");
|
||||
end
|
||||
end
|
||||
--wait for more digits
|
||||
@@ -217,10 +217,12 @@
|
||||
session:execute("playback", "phrase:voicemail_ack:emailed");
|
||||
elseif (dtmf_digits == "*") then
|
||||
timeouts = 0;
|
||||
main_menu();
|
||||
return main_menu();
|
||||
elseif (dtmf_digits == "0") then
|
||||
message_saved(voicemail_id, uuid);
|
||||
session:transfer("0", "XML", context);
|
||||
elseif (dtmf_digits == "#") then
|
||||
return;
|
||||
else
|
||||
message_saved(voicemail_id, uuid);
|
||||
session:execute("playback", "phrase:voicemail_ack:saved");
|
||||
|
||||
Reference in New Issue
Block a user