From d8ca3245c5a7f8a19a0116eeb10d58ff1b2d5923 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 22 Dec 2015 21:30:36 -0700 Subject: [PATCH] AND r.enabled = 'true' shows up on two lines change one to m.enabled and then add m.enabled to the second query. --- resources/install/scripts/app/conference_center/index.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/conference_center/index.lua b/resources/install/scripts/app/conference_center/index.lua index 08d43c42a6..09b6c9547f 100644 --- a/resources/install/scripts/app/conference_center/index.lua +++ b/resources/install/scripts/app/conference_center/index.lua @@ -449,7 +449,7 @@ AND m.domain_uuid = ']] .. domain_uuid ..[[' AND (m.moderator_pin = ']] .. pin_number ..[[' or m.participant_pin = ']] .. pin_number ..[[') AND r.enabled = 'true' - AND r.enabled = 'true' + AND m.enabled = 'true' AND ( ( r.start_datetime <> '' AND r.start_datetime is not null AND r.start_datetime <= ']] .. os.date("%Y-%m-%d %X") .. [[' ) OR ( r.start_datetime = '' OR r.start_datetime is null ) @@ -496,7 +496,9 @@ AND r.conference_center_uuid = ']] .. conference_center_uuid ..[[' AND m.domain_uuid = ']] .. domain_uuid ..[[' AND (m.moderator_pin = ']] .. pin_number ..[[' or m.participant_pin = ']] .. pin_number ..[[') - AND r.enabled = 'true' ]]; + AND r.enabled = 'true' + AND m.enabled = 'true' + ]]; if (debug["sql"]) then freeswitch.consoleLog("notice", "[conference center] SQL: " .. sql .. "\n"); end