mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Voicemail recording insturctions and options cast boolean to text
This commit is contained in:
@@ -66,7 +66,9 @@
|
||||
local email_queue_enabled = settings:get('email_queue', 'enabled', 'boolean') or "false";
|
||||
|
||||
--get recording instructions and options settings
|
||||
local sql = [[SELECT voicemail_recording_instructions, voicemail_recording_options
|
||||
local sql = [[SELECT
|
||||
cast(voicemail_recording_instructions as text),
|
||||
cast(voicemail_recording_options as text),
|
||||
FROM v_voicemails
|
||||
WHERE domain_uuid = :domain_uuid
|
||||
AND voicemail_id = :voicemail_id ]];
|
||||
@@ -78,7 +80,7 @@
|
||||
|
||||
--check voicemail recording instructions setting
|
||||
if (skip_instructions == nil) then
|
||||
if (not voicemail_recording_instructions) then
|
||||
if (voicemail_recording_instructions ~= nil and voicemail_recording_instructions == 'false') then
|
||||
skip_instructions = 'true';
|
||||
else
|
||||
skip_instructions = 'false';
|
||||
@@ -288,7 +290,7 @@
|
||||
end
|
||||
else
|
||||
if (skip_options == nil) then
|
||||
if (voicemail_recording_options == false) then
|
||||
if (voicemail_recording_options ~= nil and voicemail_recording_options == 'false') then
|
||||
skip_options = 'true';
|
||||
else
|
||||
skip_options = 'false';
|
||||
|
||||
Reference in New Issue
Block a user