From 73cf589159980dadc772913330853d4819daebb0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 18 May 2020 13:21:13 -0600 Subject: [PATCH] Make follow_me_strategy more flexible. --- app/scripts/resources/scripts/app/follow_me/index.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scripts/resources/scripts/app/follow_me/index.lua b/app/scripts/resources/scripts/app/follow_me/index.lua index ba28c5cdf0..a43d46587a 100644 --- a/app/scripts/resources/scripts/app/follow_me/index.lua +++ b/app/scripts/resources/scripts/app/follow_me/index.lua @@ -15,12 +15,13 @@ -- The Initial Developer of the Original Code is -- Mark J Crane --- Portions created by the Initial Developer are Copyright (C) 2019 +-- Portions created by the Initial Developer are Copyright (C) 2019 - 2020 -- the Initial Developer. All Rights Reserved. --includes local Database = require "resources.functions.database"; local route_to_bridge = require "resources.functions.route_to_bridge" + local Settings = require "resources.functions.lazy_settings" require "resources.functions.trim"; --get the variables @@ -50,7 +51,7 @@ end --set the strategy - follow_me_strategy = 'enterprise'; --simultaneous, enterprise + local follow_me_strategy = settings:get('follow_me', 'strategy', 'text') or 'enterprise'; --simultaneous, enterprise --include json library debug["sql"] = false;