C# Class SIPSorcery.SIP.App.SIPPacketMangler

Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

GetRequestIPAddress() public static méthode

public static GetRequestIPAddress ( SIPRequest sipRequest ) : IPAddress
sipRequest SIPSorcery.SIP.SIPRequest
Résultat System.Net.IPAddress

MangleSDP() public static méthode

public static MangleSDP ( string sdpBody, string publicIPAddress, bool &wasMangled ) : string
sdpBody string
publicIPAddress string
wasMangled bool
Résultat string

MangleSIPRequest() public static méthode

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
Résultat void

MangleSIPResponse() public static méthode

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
Résultat void