C# Class SIPSorcery.SIP.SIPResponse

Status Codes: 1xx: Provisional -- request received, continuing to process the request; 2xx: Success -- the action was successfully received, understood, and accepted; 3xx: Redirection -- further action needs to be taken in order to complete the request; 4xx: Client Error -- the request contains bad syntax or cannot be fulfilled at this server; 5xx: Server Error -- the server failed to fulfill an apparently valid request; 6xx: Global Failure -- the request cannot be fulfilled at any server.
Mostra file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
Body string
Created System.DateTime
Header SIPHeader
LocalSIPEndPoint SIPEndPoint
ReasonPhrase string
RemoteSIPEndPoint SIPEndPoint
SIPVersion string
Status SIPResponseStatusCodesEnum
StatusCode int

Public Methods

Method Description
Copy ( ) : SIPResponse

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

ParseSIPResponse ( SIPMessage sipMessage ) : SIPResponse
ParseSIPResponse ( string sipMessageStr ) : SIPResponse
SIPResponse ( SIPResponseStatusCodesEnum responseType, string reasonPhrase, SIPEndPoint localSIPEndPoint ) : NUnit.Framework
ToString ( ) : string

Private Methods

Method Description
SIPResponse ( ) : NUnit.Framework

Method Details

Copy() public method

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

ParseSIPResponse() public static method

public static ParseSIPResponse ( SIPMessage sipMessage ) : SIPResponse
sipMessage SIPMessage
return SIPResponse

ParseSIPResponse() public static method

public static ParseSIPResponse ( string sipMessageStr ) : SIPResponse
sipMessageStr string
return SIPResponse

SIPResponse() public method

public SIPResponse ( SIPResponseStatusCodesEnum responseType, string reasonPhrase, SIPEndPoint localSIPEndPoint ) : NUnit.Framework
responseType SIPResponseStatusCodesEnum
reasonPhrase string
localSIPEndPoint SIPEndPoint
return NUnit.Framework

ToString() public method

public ToString ( ) : string
return string

Property Details

Body public_oe property

public string Body
return string

Created public_oe property

public DateTime,System Created
return System.DateTime

Header public_oe property

public SIPHeader,SIPSorcery.SIP Header
return SIPHeader

LocalSIPEndPoint public_oe property

public SIPEndPoint,SIPSorcery.SIP LocalSIPEndPoint
return SIPEndPoint

ReasonPhrase public_oe property

public string ReasonPhrase
return string

RemoteSIPEndPoint public_oe property

public SIPEndPoint,SIPSorcery.SIP RemoteSIPEndPoint
return SIPEndPoint

SIPVersion public_oe property

public string SIPVersion
return string

Status public_oe property

public SIPResponseStatusCodesEnum Status
return SIPResponseStatusCodesEnum

StatusCode public_oe property

public int StatusCode
return int