Voicemail: Let skip_instructions channel variable still take priority over voicemail_recording_options in database.

This commit is contained in:
fusionate 2023-06-28 02:45:35 +00:00
parent 679df10c6e
commit a8f25e9657
No known key found for this signature in database
1 changed files with 9 additions and 5 deletions

View File

@ -278,12 +278,16 @@
end
--check voicemail recording options setting
if (skip_options == nil) then
if (voicemail_recording_options == 'true') then
skip_options = 'false';
elseif (voicemail_recording_options == 'false') then
skip_options = 'true';
if (skip_instructions == nil) then
if (skip_options == nil) then
if (voicemail_recording_options == 'true') then
skip_options = 'false';
elseif (voicemail_recording_options == 'false') then
skip_options = 'true';
end
end
else
skip_options = skip_instructions;
end
--options press 1 to listen to the recording, press 2 to save the recording, press 3 to re-record