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.
This commit is contained in:
FusionPBX 2023-05-28 11:26:39 -06:00 committed by GitHub
parent 607d19ab3e
commit 55124c5313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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