mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-14 20:48:24 +00:00
[Extension] Don't null dial_string when enable/disable follow me or dnd (#6000)
This commit is contained in:
@@ -380,7 +380,9 @@
|
||||
presence_id = (NUMBER_AS_PRESENCE_ID and sip_from_number or sip_from_user) .. "@" .. domain_name;
|
||||
|
||||
--set the dial_string
|
||||
if (string.len(row.dial_string) > 0) then
|
||||
if (do_not_disturb == "true") then
|
||||
dial_string = "error/USER_BUSY";
|
||||
elseif (string.len(row.dial_string) > 0) then
|
||||
dial_string = row.dial_string;
|
||||
else
|
||||
local destination = (DIAL_STRING_BASED_ON_USERID and sip_from_number or sip_from_user) .. "@" .. domain_name;
|
||||
|
||||
Reference in New Issue
Block a user