From 6f63f7099359ed865818b1a5552018f097b23c3e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 24 Apr 2019 09:06:16 -0600 Subject: [PATCH] Update follow_me.lua --- resources/install/scripts/follow_me.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/install/scripts/follow_me.lua b/resources/install/scripts/follow_me.lua index 16de2e586e..bafb80cc38 100644 --- a/resources/install/scripts/follow_me.lua +++ b/resources/install/scripts/follow_me.lua @@ -138,6 +138,11 @@ --update the extension sql = "update v_extensions set "; + if (enabled == "true") then + sql = sql .. "dial_string = null, "; + else + sql = sql .. "dial_string = :dial_string, "; + end sql = sql .. "do_not_disturb = 'false', "; sql = sql .. "forward_all_enabled= 'false' "; sql = sql .. "where domain_uuid = :domain_uuid ";