mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-02 10:03:49 +00:00
Merge pull request #5754 from greenbea/patch-17
Ring group release database handle before bridge
This commit is contained in:
@@ -882,6 +882,9 @@
|
||||
end
|
||||
end
|
||||
|
||||
--release dbh before bridge
|
||||
dbh:release();
|
||||
|
||||
--session execute
|
||||
if (session:ready()) then
|
||||
--set the variables
|
||||
@@ -1006,6 +1009,7 @@
|
||||
session:execute(ring_group_timeout_app, ring_group_timeout_data);
|
||||
end
|
||||
else
|
||||
dbh = Database.new('system');
|
||||
local sql = "SELECT ring_group_timeout_app, ring_group_timeout_data FROM v_ring_groups ";
|
||||
sql = sql .. "where ring_group_uuid = :ring_group_uuid";
|
||||
local params = {ring_group_uuid = ring_group_uuid};
|
||||
|
||||
Reference in New Issue
Block a user