From d7436731d58748fdca1abb24d02f3d79b28636b5 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 2 May 2014 05:45:57 +0000 Subject: [PATCH] Add conference center mute.lua --- .../conference_center/resources/scripts/mute.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/install/scripts/app/conference_center/resources/scripts/mute.lua diff --git a/resources/install/scripts/app/conference_center/resources/scripts/mute.lua b/resources/install/scripts/app/conference_center/resources/scripts/mute.lua new file mode 100644 index 0000000000..c35a676cc7 --- /dev/null +++ b/resources/install/scripts/app/conference_center/resources/scripts/mute.lua @@ -0,0 +1,16 @@ + +--get the argv values + script_name = argv[0]; + +--options all, last, non_moderator, member_id + data = argv[1]; + +--prepare the api object + api = freeswitch.API(); + +--get the session variables + conference_name = session:getVariable("conference_name"); + +--send the conferenc mute command + cmd = "conference " .. conference_name .. " mute " .. data; + response = api:executeString(cmd);