Class SIPEscape
Static class that contains various methods for escaping and unescaping
reserved characters in various parts of SIPURIs, SIP headers, SIP parameters,
etc.
Assembly: SipLib.dll
Syntax
public static class SIPEscape
Methods
|
Edit this page
View Source
EscapeSpecialCharacters(string)
Replaces special characters with their hexadecimal equivalent as specified in RFC 2396, plus Less Than and
Greater Than. This function can be used for escaping characters in an embeded URI embedded
Declaration
public static string EscapeSpecialCharacters(string strInput)
Parameters
Type |
Name |
Description |
string |
strInput |
Input string to replace special characters in.
|
Returns
Type |
Description |
string |
Returns a new string with the special characters replaced by
their hexadecimal equivalent.
|
|
Edit this page
View Source
SIPURIParameterEscape(string)
Escapes reserved characters in SIP URI parameter fields
Declaration
public static string SIPURIParameterEscape(string unescapedString)
Parameters
Type |
Name |
Description |
string |
unescapedString |
|
Returns
|
Edit this page
View Source
SIPURIParameterUnescape(string)
Unescapes reserved characters in SIP URI parameters
Declaration
public static string SIPURIParameterUnescape(string escapedString)
Parameters
Type |
Name |
Description |
string |
escapedString |
|
Returns
|
Edit this page
View Source
SIPURIUserEscape(string)
Escapes reserved characters in a SIP user name field
Declaration
public static string SIPURIUserEscape(string unescapedString)
Parameters
Type |
Name |
Description |
string |
unescapedString |
|
Returns
|
Edit this page
View Source
SIPURIUserUnescape(string)
Unescapes reserved characters in a SIP user name field
Declaration
public static string? SIPURIUserUnescape(string escapedString)
Parameters
Type |
Name |
Description |
string |
escapedString |
|
Returns
|
Edit this page
View Source
UnEscapeSpecialCharacters(string)
Replaces the hexadecimal equivalent of special characters with the special characters as specified in RFC 2396,
plus Less Than and Greater Than.
Declaration
public static string UnEscapeSpecialCharacters(string strInput)
Parameters
Type |
Name |
Description |
string |
strInput |
Input string containing hexadecimal equivalent hexadecial strings.
|
Returns
Type |
Description |
string |
Returns a new string with the hexadecimal equivalent strings replaced by the special characters.
|