From bcc990e84f2145ed11c39ec45a6b3adbb739aed2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 Jun 2020 20:14:28 -0600 Subject: [PATCH] Fix follow me calls to external destinations. --- app/scripts/resources/scripts/app/follow_me/index.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/resources/scripts/app/follow_me/index.lua b/app/scripts/resources/scripts/app/follow_me/index.lua index 4ade174cf2..1fc01f88eb 100644 --- a/app/scripts/resources/scripts/app/follow_me/index.lua +++ b/app/scripts/resources/scripts/app/follow_me/index.lua @@ -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 ";