Update call_forward.lua (#3976)
This commit is contained in:
parent
e00284a956
commit
f06ff3db3e
|
|
@ -298,7 +298,7 @@
|
|||
--send notify to phone if feature sync is enabled
|
||||
if settings:get('device', 'feature_sync', 'boolean') == 'true' then
|
||||
-- Get values from the database
|
||||
do_not_disturb, forward_all_enabled, forward_all_destination, forward_busy_enabled, forward_busy_destination, forward_no_answer_enabled, forward_no_answer_destination, call_timeout = notify.get_db_values(extension, domain_name)
|
||||
do_not_disturb, forward_all_enabled, forward_all_destination, forward_busy_enabled, forward_busy_destination, forward_no_answer_enabled, forward_no_answer_destination, call_timeout = notify.get_db_values(extension, domain_name);
|
||||
|
||||
-- Get the sip_profile
|
||||
if (extension ~= nil and domain_name ~= nil) then
|
||||
|
|
@ -345,7 +345,7 @@
|
|||
end
|
||||
|
||||
--disconnect from database
|
||||
dbh:release()
|
||||
dbh:release();
|
||||
|
||||
--clear the cache
|
||||
if extension and #extension > 0 and cache.support() then
|
||||
|
|
@ -365,9 +365,9 @@
|
|||
|
||||
-- BLF for display CF status
|
||||
blf.forward(enabled == 'true', extension, number_alias,
|
||||
last_forward_all_destination, forward_all_destination, domain_name)
|
||||
last_forward_all_destination, forward_all_destination, domain_name);
|
||||
|
||||
-- turn off DND BLF
|
||||
if enabled == 'true' then
|
||||
blf.dnd(false, extension, number_alias, domain_name)
|
||||
if (enabled == 'true') then
|
||||
blf.dnd(false, extension, number_alias, domain_name);
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue