Class SIPPacketMangler
Inheritance
System.Object
SIPPacketMangler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.SIP.App
Assembly: SIPSorcery.dll
Syntax
public class SIPPacketMangler
Methods
| Improve this Doc View SourceGetRequestIPAddress(SIPRequest)
Declaration
public static IPAddress GetRequestIPAddress(SIPRequest sipRequest)
Parameters
Type | Name | Description |
---|---|---|
SIPRequest | sipRequest |
Returns
Type | Description |
---|---|
System.Net.IPAddress |
MangleSDP(String, String, out Boolean)
Declaration
public static string MangleSDP(string sdpBody, string publicIPAddress, out bool wasMangled)
Parameters
Type | Name | Description |
---|---|---|
System.String | sdpBody | |
System.String | publicIPAddress | |
System.Boolean | wasMangled |
Returns
Type | Description |
---|---|
System.String |
MangleSIPRequest(SIPRequest)
Mangles private IP addresses in a SIP request replacing them with the IP address the packet was received on.
Declaration
public static void MangleSIPRequest(SIPRequest sipRequest)
Parameters
Type | Name | Description |
---|---|---|
SIPRequest | sipRequest | The unmangled SIP request. |
MangleSIPResponse(SIPResponse, SIPEndPoint)
Mangles private IP addresses in a SIP response replacing them with the IP address the packet was received on.
Declaration
public static void MangleSIPResponse(SIPResponse sipResponse, SIPEndPoint remoteEndPoint)
Parameters
Type | Name | Description |
---|---|---|
SIPResponse | sipResponse | The unmangled SIP response. |
SIPEndPoint | remoteEndPoint |