C# 클래스 SIPSorcery.SIP.SIPViaSet

파일 보기 프로젝트 열기: sipsorcery/sipsorcery 1 사용 예제들

공개 메소드들

메소드 설명
AddBottomViaHeader ( SIPViaHeader viaHeader ) : void
PopTopViaHeader ( ) : SIPViaHeader

Pops top Via header off the array.

PushViaHeader ( SIPViaHeader viaHeader ) : void

Pushes a new Via header onto the top of the array.

ToString ( ) : string
UpateTopViaHeader ( IPEndPoint msgRcvdEndPoint ) : void

Updates the topmost Via header by setting the received and rport parameters to the IP address and port the request came from.

The setting of the received parameter is documented in RFC3261 section 18.2.1 and in RFC3581 section 4. RFC3581 states that the received parameter value must be set even if it's the same as the address in the sent from field. The setting of the rport parameter is documented in RFC3581 section 4. An attempt was made to comply with the RFC3581 standard and only set the rport parameter if it was included by the client user agent however in the wild there are too many user agents that are behind symmetric NATs not setting an empty rport and if it's not added then they will not be able to communicate.

메소드 상세

AddBottomViaHeader() 공개 메소드

public AddBottomViaHeader ( SIPViaHeader viaHeader ) : void
viaHeader SIPViaHeader
리턴 void

PopTopViaHeader() 공개 메소드

Pops top Via header off the array.
public PopTopViaHeader ( ) : SIPViaHeader
리턴 SIPViaHeader

PushViaHeader() 공개 메소드

Pushes a new Via header onto the top of the array.
public PushViaHeader ( SIPViaHeader viaHeader ) : void
viaHeader SIPViaHeader
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

UpateTopViaHeader() 공개 메소드

Updates the topmost Via header by setting the received and rport parameters to the IP address and port the request came from.
The setting of the received parameter is documented in RFC3261 section 18.2.1 and in RFC3581 section 4. RFC3581 states that the received parameter value must be set even if it's the same as the address in the sent from field. The setting of the rport parameter is documented in RFC3581 section 4. An attempt was made to comply with the RFC3581 standard and only set the rport parameter if it was included by the client user agent however in the wild there are too many user agents that are behind symmetric NATs not setting an empty rport and if it's not added then they will not be able to communicate.
public UpateTopViaHeader ( IPEndPoint msgRcvdEndPoint ) : void
msgRcvdEndPoint System.Net.IPEndPoint The remote endpoint the request was received from.
리턴 void