From bbfbcf7729e1be5a7cb32b4fd62a82d68d5f1b43 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 1 Feb 2013 12:27:57 +0000 Subject: [PATCH] Enable the sounds true/false for conference_center.lua --- .../install/scripts/conference_center.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/includes/install/scripts/conference_center.lua b/includes/install/scripts/conference_center.lua index 75fcea3486..e66b3f45c8 100644 --- a/includes/install/scripts/conference_center.lua +++ b/includes/install/scripts/conference_center.lua @@ -186,6 +186,10 @@ if (not default_dialect) then default_dialect = 'us'; end if (not default_voice) then default_voice = 'callie'; end + --sounds + enter_sound = "tone_stream://%(200,0,500,600,700)"; + exit_sound = "tone_stream://%(500,0,300,200,100,50,25)"; + --get the variables username = session:getVariable("username"); caller_id_name = session:getVariable("caller_id_name"); @@ -225,8 +229,8 @@ wait_mod = row["wait_mod"]; member_type = row["member_type"]; announce = row["announce"]; - --enter_sound = row["enter_sound"]; mute = row["mute"]; + sounds = row["sounds"]; created = row["created"]; created_by = row["created_by"]; enabled = row["enabled"]; @@ -339,12 +343,9 @@ end --set the exit sound - if (exit_sound ~= nil) then + if (sounds == "true") then session:execute("set","conference_exit_sound="..exit_sound); end - --else - -- session:execute("set","conference_exit_sound="); - --end --set flags and moderator controls if (mute == "true") then @@ -397,10 +398,10 @@ freeswitch.consoleLog("notice", "[conference] ".. cmd .."\n"); response = api:executeString(cmd); else - --if (enter_sound ~= nil) then - -- cmd = "conference "..meeting_uuid.."-"..domain_name.." play "..enter_sound; - -- response = api:executeString(cmd); - --end + if (sounds == "true") then + cmd = "conference "..meeting_uuid.."-"..domain_name.." play "..enter_sound; + response = api:executeString(cmd); + end end --send the call to the conference