Default settings will override channel variables

These two settings when enabled
- message_caller_id_number 
- message_date_time

Override the following channel variables
- vm_say_caller_id_number
- vm_say_date_time
This commit is contained in:
FusionPBX 2023-02-14 18:19:48 -07:00 committed by GitHub
parent 9ef904fed1
commit eda9ee41fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 12 deletions

View File

@ -182,21 +182,17 @@
end
end
if (not vm_say_caller_id_number) then
if (settings['voicemail']['message_caller_id_number'] ~= nil) then
if (settings['voicemail']['message_caller_id_number']['text'] ~= nil) then
vm_say_caller_id_number = settings['voicemail']['message_caller_id_number']['text'];
end
end;
end
if (not vm_say_date_time) then
if (settings['voicemail']['message_date_time'] ~= nil) then
if (settings['voicemail']['message_date_time']['text'] ~= nil) then
vm_say_date_time = settings['voicemail']['message_date_time']['text'];
end
end
end
if (not vm_say_caller_id_number) then
vm_say_caller_id_number = "before";