C# 클래스 SIPSorcery.Servers.SIPProxyCore

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

공개 프로퍼티들

프로퍼티 타입 설명
PublicIPAddress System.Net.IPAddress

공개 메소드들

메소드 설명
SIPProxyCore ( SIPMonitorLogDelegate proxyLogger, SIPTransport sipTransport, string scriptPath, string appServerEndPointsPath ) : NUnit.Framework

비공개 메소드들

메소드 설명
GotRequest ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPRequest sipRequest ) : void

From RFC3261: Stateless Proxy Request Processing: For each target, the proxy forwards the request following these 1. Make a copy of the received request 2. Update the Request-URI 3. Update the Max-Forwards header field 4. Optionally add a Record-route header field value 5. Optionally add additional header fields 6. Postprocess routing information 7. Determine the next-hop address, port, and transport 8. Add a Via header field value 9. Add a Content-Length header field if necessary 10. Forward the new request See sections 12.2.1.1 and 16.12.1.2 in the SIP RFC for the best explanation on the way the Route header works.

GotResponse ( SIPEndPoint localSIPEndPoint, SIPEndPoint remoteEndPoint, SIPResponse sipResponse ) : void

From RFC3261: Stateless Proxy Response Processing: When a response arrives at a stateless proxy, the proxy MUST inspect the sent-by value in the first (topmost) Via header field value. If that address matches the proxy, (it equals a value this proxy has inserted into previous requests) the proxy MUST remove that header field value from the response and forward the result to the location indicated in the next Via header field value. The proxy MUST NOT add to, modify, or remove the message body. Unless specified otherwise, the proxy MUST NOT remove any other header field values. If the address does not match the proxy, the message MUST be silently discarded.

SendMonitorEvent ( SIPMonitorEvent monitorEvent ) : void
SendMonitorEvent ( SIPMonitorEventTypesEnum eventType, string message, SIPEndPoint localEndPoint, SIPEndPoint remoteEndPoint, SIPEndPoint dstEndPoint ) : void

메소드 상세

SIPProxyCore() 공개 메소드

public SIPProxyCore ( SIPMonitorLogDelegate proxyLogger, SIPTransport sipTransport, string scriptPath, string appServerEndPointsPath ) : NUnit.Framework
proxyLogger SIPMonitorLogDelegate
sipTransport SIPSorcery.SIP.SIPTransport
scriptPath string
appServerEndPointsPath string
리턴 NUnit.Framework

프로퍼티 상세

PublicIPAddress 공개적으로 프로퍼티

public IPAddress,System.Net PublicIPAddress
리턴 System.Net.IPAddress