Update index.lua
This commit is contained in:
parent
9091d07077
commit
af6d0d0965
|
|
@ -402,7 +402,7 @@
|
||||||
|
|
||||||
local params = {ring_group_uuid = ring_group_uuid, domain_uuid = domain_uuid};
|
local params = {ring_group_uuid = ring_group_uuid, domain_uuid = domain_uuid};
|
||||||
|
|
||||||
assert(dbh:query(sql, params, function(row)
|
dbh:query(sql, params, function(row)
|
||||||
if (row.ring_group_strategy == "random") then
|
if (row.ring_group_strategy == "random") then
|
||||||
if (database["type"] == "mysql") then
|
if (database["type"] == "mysql") then
|
||||||
sql_order = 'rand()'
|
sql_order = 'rand()'
|
||||||
|
|
@ -412,7 +412,7 @@
|
||||||
else
|
else
|
||||||
sql_order='d.destination_delay, d.destination_number asc'
|
sql_order='d.destination_delay, d.destination_number asc'
|
||||||
end
|
end
|
||||||
end));
|
end);
|
||||||
|
|
||||||
--get the ring group destinations
|
--get the ring group destinations
|
||||||
sql = [[
|
sql = [[
|
||||||
|
|
@ -438,7 +438,7 @@
|
||||||
destinations = {};
|
destinations = {};
|
||||||
destination_count = 0;
|
destination_count = 0;
|
||||||
x = 1;
|
x = 1;
|
||||||
assert(dbh:query(sql, params, function(row)
|
dbh:query(sql, params, function(row)
|
||||||
if (row.destination_prompt == "1" or row.destination_prompt == "2") then
|
if (row.destination_prompt == "1" or row.destination_prompt == "2") then
|
||||||
prompt = "true";
|
prompt = "true";
|
||||||
end
|
end
|
||||||
|
|
@ -482,7 +482,7 @@
|
||||||
row['domain_name'] = leg_domain_name;
|
row['domain_name'] = leg_domain_name;
|
||||||
destination_count = destination_count + 1;
|
destination_count = destination_count + 1;
|
||||||
x = x + 1;
|
x = x + 1;
|
||||||
end));
|
end);
|
||||||
--freeswitch.consoleLog("NOTICE", "[ring_group] external "..external.."\n");
|
--freeswitch.consoleLog("NOTICE", "[ring_group] external "..external.."\n");
|
||||||
|
|
||||||
--get the dialplan data and save it to a table
|
--get the dialplan data and save it to a table
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue