Fix follow me calls to external destinations.

This commit is contained in:
FusionPBX 2020-06-19 20:14:28 -06:00 committed by GitHub
parent b42cbc60b3
commit bcc990e84f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@
end
--get the destination caller id name and number
if (follow_me_caller_id_uuid ~= nil) then
if (follow_me_caller_id_uuid and follow_me_caller_id_uuid ~= '') then
local sql = "select destination_uuid, destination_number, destination_description, destination_caller_id_name, destination_caller_id_number ";
sql = sql .. "from v_destinations ";
sql = sql .. "where domain_uuid = :domain_uuid ";