Conference center remove a redundant dbh:release(); which is not needed because its being done in the hangup hook. Turn off sql debug.
This commit is contained in:
parent
52c6e1e735
commit
9e2f71b1cf
|
|
@ -34,7 +34,7 @@
|
|||
digit_timeout = 5000;
|
||||
|
||||
--debug
|
||||
debug["sql"] = true;
|
||||
debug["sql"] = false;
|
||||
|
||||
--connect to the database
|
||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||
|
|
@ -634,7 +634,7 @@
|
|||
--send a command to record the conference
|
||||
if (not file_exists(recording..".wav")) then
|
||||
cmd = "conference "..meeting_uuid.."-"..domain_name.." record "..recording..".wav";
|
||||
freeswitch.consoleLog("notice", "[conference center] cmd: " .. cmd .. "\n");
|
||||
--freeswitch.consoleLog("notice", "[conference center] cmd: " .. cmd .. "\n");
|
||||
response = api:executeString(cmd);
|
||||
end
|
||||
end
|
||||
|
|
@ -644,11 +644,11 @@
|
|||
if (announce == "true") then
|
||||
--announce the caller - play the recording
|
||||
cmd = "conference "..meeting_uuid.."-"..domain_name.." play /tmp/conference-"..uuid..".wav";
|
||||
freeswitch.consoleLog("notice", "[conference center] ".. cmd .."\n");
|
||||
--freeswitch.consoleLog("notice", "[conference center] ".. cmd .."\n");
|
||||
response = api:executeString(cmd);
|
||||
--play has entered the conference
|
||||
cmd = "conference "..meeting_uuid.."-"..domain_name.." play "..sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/conference/conf-has_joined.wav";
|
||||
freeswitch.consoleLog("notice", "[conference center] ".. cmd .."\n");
|
||||
--freeswitch.consoleLog("notice", "[conference center] ".. cmd .."\n");
|
||||
response = api:executeString(cmd);
|
||||
else
|
||||
if (not conference_locked) then
|
||||
|
|
@ -659,9 +659,6 @@
|
|||
end
|
||||
end
|
||||
|
||||
--close the database connection
|
||||
dbh:release();
|
||||
|
||||
--send the call to the conference
|
||||
cmd = meeting_uuid.."-"..domain_name.."@"..profile.."+flags{".. flags .."}";
|
||||
session:execute("conference", cmd);
|
||||
|
|
|
|||
Loading…
Reference in New Issue