mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 02:43:48 +00:00
Add unmute.lua
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user