C# 클래스 SIPSorcery.SIP.App.SIPPacketMangler

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

공개 메소드들

메소드 설명
GetRequestIPAddress ( SIPRequest sipRequest ) : IPAddress
MangleSDP ( string sdpBody, string publicIPAddress, bool &wasMangled ) : string
MangleSIPRequest ( SIPMonitorServerTypesEnum server, SIPRequest sipRequest, string username, SIPMonitorLogDelegate logDelegate ) : void

Mangles private IP addresses in a SIP request replacing them with the IP address the packet was received on.

MangleSIPResponse ( SIPMonitorServerTypesEnum server, SIPResponse sipResponse, SIPEndPoint remoteEndPoint, string username, SIPMonitorLogDelegate logDelegate ) : void

Mangles private IP addresses in a SIP response replacing them with the IP address the packet was received on.

메소드 상세

GetRequestIPAddress() 공개 정적인 메소드

public static GetRequestIPAddress ( SIPRequest sipRequest ) : IPAddress
sipRequest SIPSorcery.SIP.SIPRequest
리턴 System.Net.IPAddress

MangleSDP() 공개 정적인 메소드

public static MangleSDP ( string sdpBody, string publicIPAddress, bool &wasMangled ) : string
sdpBody string
publicIPAddress string
wasMangled bool
리턴 string

MangleSIPRequest() 공개 정적인 메소드

Mangles private IP addresses in a SIP request replacing them with the IP address the packet was received on.
public static MangleSIPRequest ( SIPMonitorServerTypesEnum server, SIPRequest sipRequest, string username, SIPMonitorLogDelegate logDelegate ) : void
server SIPMonitorServerTypesEnum
sipRequest SIPSorcery.SIP.SIPRequest
username string
logDelegate SIPMonitorLogDelegate
리턴 void

MangleSIPResponse() 공개 정적인 메소드

Mangles private IP addresses in a SIP response replacing them with the IP address the packet was received on.
public static MangleSIPResponse ( SIPMonitorServerTypesEnum server, SIPResponse sipResponse, SIPEndPoint remoteEndPoint, string username, SIPMonitorLogDelegate logDelegate ) : void
server SIPMonitorServerTypesEnum
sipResponse SIPSorcery.SIP.SIPResponse The unmangled SIP response.
remoteEndPoint SIPSorcery.SIP.SIPEndPoint
username string
logDelegate SIPMonitorLogDelegate
리턴 void