namespace AsterNET.Manager.Event
{
///
/// A PeerEntryEvent is triggered in response to a SIPPeersAction or SIPShowPeerAction and contains information about a peer.
/// It is implemented in channels/chan_sip.c
///
public class PeerEntryEvent : ResponseEvent
{
private string channelType;
private string objectName;
private string chanObjectType;
private string ipAddress;
private int ipPort;
private bool dynamic;
private bool natSupport;
private bool videoSupport;
private bool textSupport;
private bool acl;
private string status;
private bool realtimedevice;
///
/// For SIP peers this is "SIP".
///
public string ChannelType
{
get { return this.channelType; }
set { this.channelType = value; }
}
public string ObjectName
{
get { return this.objectName; }
set { this.objectName = value; }
}
///
/// For SIP peers this is either "peer" or "user".
///
public string ChanObjectType
{
get { return this.chanObjectType; }
set { this.chanObjectType = value; }
}
///
/// Get/Set the IP address of the peer.
///
public string IpAddress
{
get { return this.ipAddress; }
set { this.ipAddress = value; }
}
public int IpPort
{
get { return this.ipPort; }
set { this.ipPort = value; }
}
public bool Dynamic
{
get { return this.dynamic; }
set { this.dynamic = value; }
}
public bool NatSupport
{
get { return this.natSupport; }
set { this.natSupport = value; }
}
public bool VideoSupport
{
get { return this.videoSupport; }
set { this.videoSupport = value; }
}
public bool TextSupport
{
get { return this.textSupport; }
set { this.textSupport = value; }
}
public bool Acl
{
get { return this.acl; }
set { this.acl = value; }
}
///
/// Get/Set the status of this peer.
/// For SIP peers this is one of:
///
/// - "UNREACHABLE"
///
/// - "LAGGED (%d ms)"
///
/// - "OK (%d ms)"
///
/// - "UNKNOWN"
///
/// - "Unmonitored"
///
///
///
public string Status
{
get { return this.status; }
set { this.status = value; }
}
public bool RealtimeDevice
{
get { return this.realtimedevice; }
set { this.realtimedevice = value; }
}
///
/// Creates a new instance.
///
public PeerEntryEvent(ManagerConnection source)
: base(source)
{
}
}
}