C# Класс SIPSorcery.SIP.SIPRequest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
SIPRequest ( ) : Microsoft.VisualStudio.TestTools.UnitTesting

Описание методов

Copy() публичный Метод

Creates an identical copy of the SIP Request for the caller.
public Copy ( ) : SIPRequest
Результат SIPRequest

CreateBranchId() публичный Метод

public CreateBranchId ( ) : string
Результат string

IsLoop() публичный Метод

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
Результат bool

IsValid() публичный Метод

public IsValid ( SIPValidationFieldsEnum &errorField, string &errorMessage ) : bool
errorField SIPValidationFieldsEnum
errorMessage string
Результат bool

ParseSIPRequest() публичный статический Метод

public static ParseSIPRequest ( SIPMessage sipMessage ) : SIPRequest
sipMessage SIPMessage
Результат SIPRequest

ParseSIPRequest() публичный статический Метод

public static ParseSIPRequest ( string sipMessageStr ) : SIPRequest
sipMessageStr string
Результат SIPRequest

SIPRequest() публичный Метод

public SIPRequest ( SIPMethodsEnum method, SIPURI uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
method SIPMethodsEnum
uri SIPURI
Результат Microsoft.VisualStudio.TestTools.UnitTesting

SIPRequest() публичный Метод

public SIPRequest ( SIPMethodsEnum method, string uri ) : Microsoft.VisualStudio.TestTools.UnitTesting
method SIPMethodsEnum
uri string
Результат Microsoft.VisualStudio.TestTools.UnitTesting

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

Body публичное свойство

public string Body
Результат string

Created публичное свойство

public DateTime,System Created
Результат System.DateTime

Header публичное свойство

public SIPHeader,SIPSorcery.SIP Header
Результат SIPHeader

LocalSIPEndPoint публичное свойство

public SIPEndPoint,SIPSorcery.SIP LocalSIPEndPoint
Результат SIPEndPoint

Method публичное свойство

public SIPMethodsEnum Method
Результат SIPMethodsEnum

ReceivedRoute публичное свойство

public SIPRoute,SIPSorcery.SIP ReceivedRoute
Результат SIPRoute

RemoteSIPEndPoint публичное свойство

public SIPEndPoint,SIPSorcery.SIP RemoteSIPEndPoint
Результат SIPEndPoint

SIPMajorVersion публичное свойство

public int SIPMajorVersion
Результат int

SIPMinorVersion публичное свойство

public int SIPMinorVersion
Результат int

SIPVersion публичное свойство

public string SIPVersion
Результат string

URI публичное свойство

public SIPURI,SIPSorcery.SIP URI
Результат SIPURI

UnknownMethod публичное свойство

public string UnknownMethod
Результат string