C# Class SIPSorcery.SIP.App.SIPPacketMangler

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method 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 method

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

MangleSDP() public static method

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

MangleSIPRequest() public static method

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
return void

MangleSIPResponse() public static method

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
return void