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:
parent
607d19ab3e
commit
55124c5313
|
|
@ -385,7 +385,7 @@
|
||||||
if (follow_me_strategy == "enterprise") then
|
if (follow_me_strategy == "enterprise") then
|
||||||
timeout_name = "originate_timeout";
|
timeout_name = "originate_timeout";
|
||||||
delay_name = "originate_delay_start";
|
delay_name = "originate_delay_start";
|
||||||
destination_delay = destination_delay * 500;
|
--destination_delay = destination_delay * 500;
|
||||||
else
|
else
|
||||||
timeout_name = "leg_timeout";
|
timeout_name = "leg_timeout";
|
||||||
delay_name = "leg_delay_start";
|
delay_name = "leg_delay_start";
|
||||||
|
|
@ -474,7 +474,7 @@
|
||||||
|
|
||||||
--set the destination dial string
|
--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.
|
-- 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
|
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
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue