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:
@@ -354,6 +354,7 @@
|
||||
end
|
||||
destinations = {};
|
||||
x = 1;
|
||||
destination_count = 0;
|
||||
assert(dbh:query(sql, params, function(row)
|
||||
if (row.destination_prompt == "1" or row.destination_prompt == "2") then
|
||||
prompt = "true";
|
||||
@@ -414,6 +415,7 @@
|
||||
destinations[x] = row;
|
||||
end
|
||||
row['domain_name'] = leg_domain_name;
|
||||
destination_count = destination_count + 1;
|
||||
x = x + 1;
|
||||
end));
|
||||
--freeswitch.consoleLog("NOTICE", "[ring_group] external "..external.."\n");
|
||||
@@ -479,6 +481,11 @@
|
||||
session:setVariable("ringback", ring_group_ringback);
|
||||
session:setVariable("transfer_ringback", ring_group_ringback);
|
||||
|
||||
--set the timeout if there is only one destination
|
||||
if (destination_count == 1) then
|
||||
session:execute("set", "call_timeout="..row.destination_timeout);
|
||||
end
|
||||
|
||||
--setup the delimiter
|
||||
delimiter = ",";
|
||||
if (ring_group_strategy == "rollover") then
|
||||
|
||||
Reference in New Issue
Block a user