Class SIPEscape
For SIP URI user portion the reserved characters below need to be escaped.
reserved = ";" / "/" / "?" / ":" / "@" / "&" / "=" / "+" / "$" / ","
user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
Leaving to be escaped = ":" / "@"
For SIP URI parameters different characters are unreserved (just to make life difficult).
reserved = ";" / "/" / "?" / ":" / "@" / "&" / "=" / "+" / "$" / ","
param-unreserved = "[" / "]" / "/" / ":" / "&" / "+" / "$"
Leaving to be escaped = ";" / "?" / "@" / "=" / ","
Inheritance
System.Object
SIPEscape
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
Assembly: SIPSorcery.dll
Syntax
public static class SIPEscape
Methods
| Improve this Doc View SourceSIPURIParameterEscape(String)
Declaration
public static string SIPURIParameterEscape(string unescapedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | unescapedString |
Returns
Type | Description |
---|---|
System.String |
SIPURIParameterUnescape(String)
Declaration
public static string SIPURIParameterUnescape(string escapedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | escapedString |
Returns
Type | Description |
---|---|
System.String |
SIPURIUserEscape(String)
Declaration
public static string SIPURIUserEscape(string unescapedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | unescapedString |
Returns
Type | Description |
---|---|
System.String |
SIPURIUserUnescape(String)
Declaration
public static string SIPURIUserUnescape(string escapedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | escapedString |
Returns
Type | Description |
---|---|
System.String |