Add conference center mute.lua

This commit is contained in:
Mark Crane 2014-05-02 05:45:57 +00:00
parent 92cce44faf
commit d7436731d5
1 changed files with 16 additions and 0 deletions

View File

@ -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);