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;
|
digit_timeout = 5000;
|
||||||
|
|
||||||
--debug
|
--debug
|
||||||
debug["sql"] = true;
|
debug["sql"] = false;
|
||||||
|
|
||||||
--connect to the database
|
--connect to the database
|
||||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||||
|
|
@ -634,7 +634,7 @@
|
||||||
--send a command to record the conference
|
--send a command to record the conference
|
||||||
if (not file_exists(recording..".wav")) then
|
if (not file_exists(recording..".wav")) then
|
||||||
cmd = "conference "..meeting_uuid.."-"..domain_name.." record "..recording..".wav";
|
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);
|
response = api:executeString(cmd);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -644,11 +644,11 @@
|
||||||
if (announce == "true") then
|
if (announce == "true") then
|
||||||
--announce the caller - play the recording
|
--announce the caller - play the recording
|
||||||
cmd = "conference "..meeting_uuid.."-"..domain_name.." play /tmp/conference-"..uuid..".wav";
|
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);
|
response = api:executeString(cmd);
|
||||||
--play has entered the conference
|
--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";
|
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);
|
response = api:executeString(cmd);
|
||||||
else
|
else
|
||||||
if (not conference_locked) then
|
if (not conference_locked) then
|
||||||
|
|
@ -659,9 +659,6 @@
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--close the database connection
|
|
||||||
dbh:release();
|
|
||||||
|
|
||||||
--send the call to the conference
|
--send the call to the conference
|
||||||
cmd = meeting_uuid.."-"..domain_name.."@"..profile.."+flags{".. flags .."}";
|
cmd = meeting_uuid.."-"..domain_name.."@"..profile.."+flags{".. flags .."}";
|
||||||
session:execute("conference", cmd);
|
session:execute("conference", cmd);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue