C# 클래스 SIPSorcery.SIP.CallProperties

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

공개 메소드들

메소드 설명
CreateBranchId ( ) : string
CreateBranchId ( string magicCookie, string toTag, string fromTag, string callId, string uri, string topVia, int cSeq, string route, string proxyRequire, string proxyAuth ) : string

From RFC 3261, Section 16.6, Step 8. The value placed in this part of the branch parameter SHOULD reflect all of those fields (including any Route, Proxy-Require and Proxy- Authorization header fields). This is to ensure that if the request is routed back to the proxy and one of those fields changes, it is treated as a spiral and not a loop (see Section 16.3). A common way to create this value is to compute a cryptographic hash of the To tag, From tag, Call-ID header field, the Request-URI of the request received (before translation), the topmost Via header, and the sequence number from the CSeq header field, in addition to any Proxy-Require algorithm used to compute the hash is implementation-dependent, but MD5 (RFC 1321 [35]), expressed in hexadecimal, is a reasonable choice. (Base64 is not permissible for a token.)

CreateNewCallId ( ) : string
CreateNewTag ( ) : string

메소드 상세

CreateBranchId() 공개 정적인 메소드

public static CreateBranchId ( ) : string
리턴 string

CreateBranchId() 공개 정적인 메소드

From RFC 3261, Section 16.6, Step 8. The value placed in this part of the branch parameter SHOULD reflect all of those fields (including any Route, Proxy-Require and Proxy- Authorization header fields). This is to ensure that if the request is routed back to the proxy and one of those fields changes, it is treated as a spiral and not a loop (see Section 16.3). A common way to create this value is to compute a cryptographic hash of the To tag, From tag, Call-ID header field, the Request-URI of the request received (before translation), the topmost Via header, and the sequence number from the CSeq header field, in addition to any Proxy-Require algorithm used to compute the hash is implementation-dependent, but MD5 (RFC 1321 [35]), expressed in hexadecimal, is a reasonable choice. (Base64 is not permissible for a token.)
public static CreateBranchId ( string magicCookie, string toTag, string fromTag, string callId, string uri, string topVia, int cSeq, string route, string proxyRequire, string proxyAuth ) : string
magicCookie string
toTag string
fromTag string
callId string
uri string
topVia string
cSeq int
route string
proxyRequire string
proxyAuth string
리턴 string

CreateNewCallId() 공개 정적인 메소드

public static CreateNewCallId ( ) : string
리턴 string

CreateNewTag() 공개 정적인 메소드

public static CreateNewTag ( ) : string
리턴 string