From 9b0361ac7a8051b639f0b4cc28190801079f04a7 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 27 Oct 2012 00:10:48 +0000 Subject: [PATCH] When max members is set to 0 that means to allow an unlimitted number of members in the conference. --- .../install/scripts/conference_center.lua | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/includes/install/scripts/conference_center.lua b/includes/install/scripts/conference_center.lua index 4f033d5758..56298e1f7a 100644 --- a/includes/install/scripts/conference_center.lua +++ b/includes/install/scripts/conference_center.lua @@ -252,15 +252,17 @@ --set a conference parameter if (max_members ~= nil) then - --max members must be 2 or more - session:execute("set","conference_max_members="..max_members); - if (conference_exists) then - cmd = "conference "..meeting_uuid.."-"..domain_name.." get count"; - count = trim(api:executeString(cmd)); - if (count ~= nil) then - if (tonumber(count) >= tonumber(max_members)) then - session:execute("playback", sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/conference/conf-locked.wav"); - session:hangup("CALL_REJECTED"); + if (tonumber(max_members) > 0) then + --max members must be 2 or more + session:execute("set","conference_max_members="..max_members); + if (conference_exists) then + cmd = "conference "..meeting_uuid.."-"..domain_name.." get count"; + count = trim(api:executeString(cmd)); + if (count ~= nil) then + if (tonumber(count) >= tonumber(max_members)) then + session:execute("playback", sounds_dir.."/"..default_language.."/"..default_dialect.."/"..default_voice.."/conference/conf-locked.wav"); + session:hangup("CALL_REJECTED"); + end end end end