From 6e26ce9eb8fdf5f07cd90d6b0befe4aae5b6a188 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 2 May 2014 05:56:00 +0000 Subject: [PATCH] Add unmute.lua --- .../resources/scripts/unmute.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 resources/install/scripts/app/conference_center/resources/scripts/unmute.lua diff --git a/resources/install/scripts/app/conference_center/resources/scripts/unmute.lua b/resources/install/scripts/app/conference_center/resources/scripts/unmute.lua new file mode 100644 index 0000000000..cee18de617 --- /dev/null +++ b/resources/install/scripts/app/conference_center/resources/scripts/unmute.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 .. " unmute " .. data; + response = api:executeString(cmd);