From 4e5d7ee2e35bf7f1fff0a0c9790b9f3fa47d6cf5 Mon Sep 17 00:00:00 2001 From: Amyn Virani Date: Thu, 16 Jan 2020 17:11:10 -0500 Subject: [PATCH] Added event handlers for Confbridge Mute and Unmute events --- .../Asterisk.NET/Manager/ManagerConnection.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Asterisk.2013/Asterisk.NET/Manager/ManagerConnection.cs b/Asterisk.2013/Asterisk.NET/Manager/ManagerConnection.cs index f44421c..e463846 100644 --- a/Asterisk.2013/Asterisk.NET/Manager/ManagerConnection.cs +++ b/Asterisk.2013/Asterisk.NET/Manager/ManagerConnection.cs @@ -407,6 +407,16 @@ namespace AsterNET.Manager /// public event EventHandler ConfbridgeTalking; + /// + /// This event is sent when a Confbridge participant mutes. + /// + public event EventHandler ConfbridgeMute; + + /// + /// This event is sent when a Confbridge participant unmutes. + /// + public event EventHandler ConfbridgeUnmute; + /// /// /// @@ -596,6 +606,8 @@ namespace AsterNET.Manager Helper.RegisterEventHandler(registeredEventHandlers, typeof(ConfbridgeLeaveEvent), arg => fireEvent(ConfbridgeLeave, arg)); Helper.RegisterEventHandler(registeredEventHandlers, typeof(ConfbridgeEndEvent), arg => fireEvent(ConfbridgeEnd, arg)); Helper.RegisterEventHandler(registeredEventHandlers, typeof(ConfbridgeTalkingEvent), arg => fireEvent(ConfbridgeTalking, arg)); + Helper.RegisterEventHandler(registeredEventHandlers, typeof(ConfbridgeMuteEvent), arg => fireEvent(ConfbridgeMute, arg)); + Helper.RegisterEventHandler(registeredEventHandlers, typeof(ConfbridgeUnmuteEvent), arg => fireEvent(ConfbridgeUnmute, arg)); Helper.RegisterEventHandler(registeredEventHandlers, typeof(FailedACLEvent), arg => fireEvent(FailedACL, arg));