From 55124c53132cd6dfdeb084fe19e3d5f6dd947a20 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 28 May 2023 11:26:39 -0600 Subject: [PATCH] Remove destination_delay arithmetic Caused Error on FreeSWITCH enterprise version. index.lua: attempt to perform arithmetic on global destination_delay (a string value) Tried casting the value to a number and it still failed. --- app/scripts/resources/scripts/app/follow_me/index.lua | 4 ++-- 1 file changed, 2 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 918fc26a9b..e944bfdfe7 100644 --- a/app/scripts/resources/scripts/app/follow_me/index.lua +++ b/app/scripts/resources/scripts/app/follow_me/index.lua @@ -385,7 +385,7 @@ if (follow_me_strategy == "enterprise") then timeout_name = "originate_timeout"; delay_name = "originate_delay_start"; - destination_delay = destination_delay * 500; + --destination_delay = destination_delay * 500; else timeout_name = "leg_timeout"; delay_name = "leg_delay_start"; @@ -474,7 +474,7 @@ --set the destination dial string -- have to double destination_delay here due a FS bug requiring a 50% delay value for internal extensions, but not external calls. - destination_delay = destination_delay * 2; + --destination_delay = destination_delay * 2; dial_string = "[toll_allow=".. toll_allow ..",accountcode="..accountcode..",".. caller_id ..",sip_invite_domain="..domain_name..",domain_uuid="..domain_uuid..",call_direction="..call_direction..","..group_confirm..","..timeout_name.."="..destination_timeout..","..delay_name.."="..destination_delay.."]"..route_bridge end