mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
Fix. Set correct values for voicemail_to_sms_* settings (#2229)
`true` and `false` string literals evaluates to `true` boolean value.
This commit is contained in:
committed by
FusionPBX
parent
fad97e0d37
commit
f9fa141d46
@@ -159,18 +159,16 @@
|
||||
end
|
||||
end
|
||||
|
||||
if (settings['voicemail']['voicemail_to_sms'] ~= nil) then
|
||||
if (settings['voicemail']['voicemail_to_sms']['boolean'] ~= nil) then
|
||||
voicemail_to_sms = settings['voicemail']['voicemail_to_sms']['boolean'];
|
||||
else
|
||||
voicemail_to_sms = false;
|
||||
if settings['voicemail'] then
|
||||
if settings['voicemail']['voicemail_to_sms'] then
|
||||
voicemail_to_sms = (settings['voicemail']['voicemail_to_sms']['boolean'] == 'true');
|
||||
end
|
||||
end
|
||||
if (settings['voicemail']['voicemail_to_sms'] ~= nil) then
|
||||
if (settings['voicemail']['voicemail_to_sms_did']['text'] ~= nil) then
|
||||
if settings['voicemail']['voicemail_to_sms_did'] then
|
||||
voicemail_to_sms_did = settings['voicemail']['voicemail_to_sms_did']['text'];
|
||||
end
|
||||
voicemail_to_sms_did = voicemail_to_sms_did or '';
|
||||
end
|
||||
|
||||
if (not temp_dir) or (#temp_dir == 0) then
|
||||
if (settings['server'] ~= nil) then
|
||||
if (settings['server']['temp'] ~= nil) then
|
||||
|
||||
Reference in New Issue
Block a user