C# Class SIPSorcery.SIP.App.SIPMonitorFilter

Mostrar archivo Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
BaseType string
EventFilterDescr string
EventTypeId int
FileLogDuration int
FileLogname string
IPAddress string
MachineEventTypeIds List
RegexFilter string
SIPEventDialogURI SIPSorcery.SIP.SIPURI
SIPEventPresenceURI SIPSorcery.SIP.SIPURI
SIPRequestFilter string
ServerIPAddress string
ServerTypeId int
Username string

Public Methods

Method Description
GetFilterDescription ( ) : string
SIPMonitorFilter ( string filter ) : NUnit.Framework
ShowEvent ( SIPMonitorEventTypesEnum eventType, SIPEndPoint serverEndPoint ) : bool
ShowIPAddress ( string ipAddress ) : bool
ShowMachineEvent ( SIPMonitorMachineEventTypesEnum eventType ) : bool
ShowRegex ( string message ) : bool
ShowSIPMonitorEvent ( SIPMonitorEvent proxyEvent ) : bool

Rules for displaying events. 1. The event type is checked to see if it matches. If no event type has been specified than all events EXCEPT FullSIPTrace are matched, 2. If the event type is FullSIPTrace then the messages can be filtered on the request type. If the request type is not set all SIP trace messages are matched otherwise only those pertaining to the request type specified, 3. The server type is checked, if it's not set all events are matched, 4. If the event has matched up until this point a decision is now made as to whether to display or reject it: a. If the IPAddress filter is set is checked, if it matches the event is displayed otherwise it's rejected, b. If the username AND server IP AND request type AND regex filters all match the vent is displayed otherwise rejected.

ShowServer ( SIPMonitorServerTypesEnum eventServer ) : bool
ShowServerIPAddress ( string serverIPAddress ) : bool
ShowUsername ( string username ) : bool

Method Details

GetFilterDescription() public method

public GetFilterDescription ( ) : string
return string

SIPMonitorFilter() public method

public SIPMonitorFilter ( string filter ) : NUnit.Framework
filter string
return NUnit.Framework

ShowEvent() public method

public ShowEvent ( SIPMonitorEventTypesEnum eventType, SIPEndPoint serverEndPoint ) : bool
eventType SIPMonitorEventTypesEnum
serverEndPoint SIPSorcery.SIP.SIPEndPoint
return bool

ShowIPAddress() public method

public ShowIPAddress ( string ipAddress ) : bool
ipAddress string
return bool

ShowMachineEvent() public method

public ShowMachineEvent ( SIPMonitorMachineEventTypesEnum eventType ) : bool
eventType SIPMonitorMachineEventTypesEnum
return bool

ShowRegex() public method

public ShowRegex ( string message ) : bool
message string
return bool

ShowSIPMonitorEvent() public method

Rules for displaying events. 1. The event type is checked to see if it matches. If no event type has been specified than all events EXCEPT FullSIPTrace are matched, 2. If the event type is FullSIPTrace then the messages can be filtered on the request type. If the request type is not set all SIP trace messages are matched otherwise only those pertaining to the request type specified, 3. The server type is checked, if it's not set all events are matched, 4. If the event has matched up until this point a decision is now made as to whether to display or reject it: a. If the IPAddress filter is set is checked, if it matches the event is displayed otherwise it's rejected, b. If the username AND server IP AND request type AND regex filters all match the vent is displayed otherwise rejected.
public ShowSIPMonitorEvent ( SIPMonitorEvent proxyEvent ) : bool
proxyEvent SIPMonitorEvent
return bool

ShowServer() public method

public ShowServer ( SIPMonitorServerTypesEnum eventServer ) : bool
eventServer SIPMonitorServerTypesEnum
return bool

ShowServerIPAddress() public method

public ShowServerIPAddress ( string serverIPAddress ) : bool
serverIPAddress string
return bool

ShowUsername() public method

public ShowUsername ( string username ) : bool
username string
return bool

Property Details

BaseType public_oe property

public string BaseType
return string

EventFilterDescr public_oe property

public string EventFilterDescr
return string

EventTypeId public_oe property

public int EventTypeId
return int

FileLogDuration public_oe property

public int FileLogDuration
return int

FileLogname public_oe property

public string FileLogname
return string

IPAddress public_oe property

public string IPAddress
return string

MachineEventTypeIds public_oe property

public List MachineEventTypeIds
return List

RegexFilter public_oe property

public string RegexFilter
return string

SIPEventDialogURI public_oe property

public SIPURI,SIPSorcery.SIP SIPEventDialogURI
return SIPSorcery.SIP.SIPURI

SIPEventPresenceURI public_oe property

public SIPURI,SIPSorcery.SIP SIPEventPresenceURI
return SIPSorcery.SIP.SIPURI

SIPRequestFilter public_oe property

public string SIPRequestFilter
return string

ServerIPAddress public_oe property

public string ServerIPAddress
return string

ServerTypeId public_oe property

public int ServerTypeId
return int

Username public_oe property

public string Username
return string