C# Class SIPSorcery.SIP.SIPRequest

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
Body string
Created System.DateTime
Header SIPHeader
LocalSIPEndPoint SIPEndPoint
Method SIPMethodsEnum
ReceivedRoute SIPRoute
RemoteSIPEndPoint SIPEndPoint
SIPMajorVersion int
SIPMinorVersion int
SIPVersion string
URI SIPURI
UnknownMethod string

Public Methods

Method Description
Copy ( ) : SIPRequest

Creates an identical copy of the SIP Request for the caller.

CreateBranchId ( ) : string
IsLoop ( string ipAddress, int port, string currentBranchId ) : bool

Determines if this SIP header is a looped header. The basis for the decision is the branchid in the Via header. If the branchid for a new header computes to the same branchid as a Via header already in the SIP header then it is considered a loop.

IsValid ( SIPValidationFieldsEnum &errorField, string &errorMessage ) : bool
ParseSIPRequest ( SIPMessage sipMessage ) : SIPRequest
ParseSIPRequest ( string sipMessageStr ) : SIPRequest
SIPRequest ( SIPMethodsEnum method, SIPURI uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
SIPRequest ( SIPMethodsEnum method, string uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
ToString ( ) : string

Private Methods

Method Description
SIPRequest ( ) : Microsoft.VisualStudio.TestTools.UnitTesting

Method Details

Copy() public method

Creates an identical copy of the SIP Request for the caller.
public Copy ( ) : SIPRequest
return SIPRequest

CreateBranchId() public method

public CreateBranchId ( ) : string
return string

IsLoop() public method

Determines if this SIP header is a looped header. The basis for the decision is the branchid in the Via header. If the branchid for a new header computes to the same branchid as a Via header already in the SIP header then it is considered a loop.
public IsLoop ( string ipAddress, int port, string currentBranchId ) : bool
ipAddress string
port int
currentBranchId string
return bool

IsValid() public method

public IsValid ( SIPValidationFieldsEnum &errorField, string &errorMessage ) : bool
errorField SIPValidationFieldsEnum
errorMessage string
return bool

ParseSIPRequest() public static method

public static ParseSIPRequest ( SIPMessage sipMessage ) : SIPRequest
sipMessage SIPMessage
return SIPRequest

ParseSIPRequest() public static method

public static ParseSIPRequest ( string sipMessageStr ) : SIPRequest
sipMessageStr string
return SIPRequest

SIPRequest() public method

public SIPRequest ( SIPMethodsEnum method, SIPURI uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
method SIPMethodsEnum
uri SIPURI
return Microsoft.VisualStudio.TestTools.UnitTesting

SIPRequest() public method

public SIPRequest ( SIPMethodsEnum method, string uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
method SIPMethodsEnum
uri string
return Microsoft.VisualStudio.TestTools.UnitTesting

ToString() public method

public ToString ( ) : string
return string

Property Details

Body public property

public string Body
return string

Created public property

public DateTime,System Created
return System.DateTime

Header public property

public SIPHeader,SIPSorcery.SIP Header
return SIPHeader

LocalSIPEndPoint public property

public SIPEndPoint,SIPSorcery.SIP LocalSIPEndPoint
return SIPEndPoint

Method public property

public SIPMethodsEnum Method
return SIPMethodsEnum

ReceivedRoute public property

public SIPRoute,SIPSorcery.SIP ReceivedRoute
return SIPRoute

RemoteSIPEndPoint public property

public SIPEndPoint,SIPSorcery.SIP RemoteSIPEndPoint
return SIPEndPoint

SIPMajorVersion public property

public int SIPMajorVersion
return int

SIPMinorVersion public property

public int SIPMinorVersion
return int

SIPVersion public property

public string SIPVersion
return string

URI public property

public SIPURI,SIPSorcery.SIP URI
return SIPURI

UnknownMethod public property

public string UnknownMethod
return string