1. Pass unavailable reason when creating QueuePauseAction

2. QueueMember JoinEvent provides CallerIdNum instead of CallerId
3. QueueMemberEvent now retrieves paused reason
4. Added ConfbridgeMuteEvent and ConfbridgeUnmuteEvent classes so they can be triggered
This commit is contained in:
Amyn Virani 2020-01-16 16:27:27 -05:00
parent 2428cc1e8b
commit c8d725c717
5 changed files with 45 additions and 2 deletions

View file

@ -56,11 +56,13 @@ namespace AsterNET.Manager.Action
/// <param name="iface">the interface of the member to make unavailable</param> /// <param name="iface">the interface of the member to make unavailable</param>
/// <param name="queue">the queue the member is made unvailable on</param> /// <param name="queue">the queue the member is made unvailable on</param>
/// <param name="paused">true to make the member unavailbale, false to make the member available</param> /// <param name="paused">true to make the member unavailbale, false to make the member available</param>
public QueuePauseAction(string iface, string queue, bool paused) /// <param name="reason">the reason for paused when the member is made unavailable</param>
public QueuePauseAction(string iface, string queue, bool paused, string reason = null)
{ {
this.Interface = iface; this.Interface = iface;
this.Queue = queue; this.Queue = queue;
this.Paused = paused; this.Paused = paused;
this.Reason = reason;
} }
/// <summary> /// <summary>

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsterNET.Manager.Event
{
public class ConfbridgeMuteEvent : AbstractConfbridgeEvent
{
public ConfbridgeMuteEvent(ManagerConnection source)
: base(source)
{
}
}
}

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsterNET.Manager.Event
{
public class ConfbridgeUnmuteEvent : AbstractConfbridgeEvent
{
public ConfbridgeUnmuteEvent(ManagerConnection source)
: base(source)
{
}
}
}

View file

@ -15,7 +15,7 @@ namespace AsterNET.Manager.Event
/// Get/Set the Caller*ID number of the channel that joined the queue if set. /// Get/Set the Caller*ID number of the channel that joined the queue if set.
/// If the channel has no caller id set "unknown" is returned. /// If the channel has no caller id set "unknown" is returned.
/// </summary> /// </summary>
public string CallerId { get; set; } public string CallerIdNum { get; set; }
/// <summary> /// <summary>
/// Get/Set the Caller*ID name of the channel that joined the queue if set. /// Get/Set the Caller*ID name of the channel that joined the queue if set.

View file

@ -18,6 +18,7 @@ namespace AsterNET.Manager.Event
private bool paused; private bool paused;
private string name; private string name;
private bool incall; private bool incall;
private string pausedReason;
/// <summary> /// <summary>
/// Get/Set the name of the queue member. /// Get/Set the name of the queue member.
@ -135,6 +136,14 @@ namespace AsterNET.Manager.Event
get { return this.incall; } get { return this.incall; }
set { this.incall = value; } set { this.incall = value; }
} }
/// <summary>
/// Paused reason if the queue member is paused
/// </summary>
public string PausedReason
{
get { return this.pausedReason; }
set { this.pausedReason = value; }
}
public QueueMemberEvent(ManagerConnection source) public QueueMemberEvent(ManagerConnection source)
: base(source) : base(source)