Update index.lua (#4753)

* Update index.lua

* Update index.lua
This commit is contained in:
agree 2019-10-06 14:05:16 -04:00 committed by FusionPBX
parent 0eeae9894b
commit 39a8b5156a
1 changed files with 4 additions and 1 deletions

View File

@ -882,7 +882,6 @@
if (tonumber(ring_group_call_timeout) == timeout) then
break;
end
timeout = timeout + destination_timeout;
--send the call to the destination
if (user_exists == "true") then
@ -897,6 +896,10 @@
app_data = app_data .. dial_string;
freeswitch.consoleLog("NOTICE", "[ring group] app_data: "..app_data.."\n");
session:execute("bridge", app_data);
if (session:getVariable("originate_disposition") == "NO_ANSWER" ) then
timeout = timeout + destination_timeout;
end
--increment the value of x
x = x + 1;