Merge pull request #5754 from greenbea/patch-17

Ring group release database handle before bridge
This commit is contained in:
FusionPBX 2021-02-02 11:04:23 -07:00 committed by GitHub
commit 806dcce76e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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};