C# Класс SIPSorcery.SIP.App.SIPPacketMangler

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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