mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update index.lua
This commit is contained in:
@@ -794,8 +794,8 @@
|
|||||||
|
|
||||||
--if the user is busy rollover to the next destination
|
--if the user is busy rollover to the next destination
|
||||||
if (ring_group_strategy == "rollover") then
|
if (ring_group_strategy == "rollover") then
|
||||||
|
timeout = 0;
|
||||||
x = 0;
|
x = 0;
|
||||||
|
|
||||||
for key, row in pairs(destinations) do
|
for key, row in pairs(destinations) do
|
||||||
|
|
||||||
--set the app data
|
--set the app data
|
||||||
@@ -812,14 +812,11 @@
|
|||||||
extension_uuid = trim(api:executeString(cmd));
|
extension_uuid = trim(api:executeString(cmd));
|
||||||
end
|
end
|
||||||
|
|
||||||
--if the timeout was reached go to the timeout action
|
--if the timeout was reached exit the loop and go to the timeout action
|
||||||
--if (x > 0) then
|
if (tonumber(ring_group_call_timeout) == timeout) then
|
||||||
-- if (session:getVariable("originate_disposition") == "ALLOTTED_TIMEOUT"
|
break;
|
||||||
-- or session:getVariable("originate_disposition") == "NO_ANSWER"
|
end
|
||||||
-- or session:getVariable("originate_disposition") == "NO_USER_RESPONSE") then
|
timeout = timeout + destination_timeout;
|
||||||
-- break;
|
|
||||||
-- end
|
|
||||||
--end
|
|
||||||
|
|
||||||
--send the call to the destination
|
--send the call to the destination
|
||||||
if (user_exists == "true") then
|
if (user_exists == "true") then
|
||||||
|
|||||||
Reference in New Issue
Block a user