Parameter: SIP: User-to-User encoding

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Add example of the format available for the sip header)
Line 1: Line 1:
Encoding for User-to-User header
+
== Encoding options for SIP User-to-User header ==
* Use hexadecimal encoding format:
+
 
 +
=== Use hexadecimal encoding format ===
 +
Each byte of the UUI is printed as a 2-digits hexadecimal value. This allows encoding any value in the UUI, including non-printable characters.
 
     User-to-User:303030303030312e5468697320697320612074657374205555492076616c7565;encoding=hex;purpose=isdn-interwork;content=isdn-uui
 
     User-to-User:303030303030312e5468697320697320612074657374205555492076616c7565;encoding=hex;purpose=isdn-interwork;content=isdn-uui
* Use text encoding format:
+
 
 +
 
 +
=== Use text encoding format ===
 +
UUI is stored "as-is" (without any modification) into the SIP header.
 +
 
 +
'''Careful with the content of the UUI if using this option: it may render the SIP header illegal depending which ASCII characters are found in the UUI.'''
 
     User-to-User:0000001.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui
 
     User-to-User:0000001.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui
* Use text encoding format with the escape illegal characters option:
+
 
 +
 
 +
=== Use text encoding format with the escape illegal characters option ===
 +
UUI is stored in the SIP header without modification (like with the text encoding format).
 +
 
 +
However, UUI bytes that do not corresponds to a printable ASCII character, or that corrsponds to an ASCII character that can't be used within a SIP header will be escaped.
 +
 
 +
Escaping is made by using character % followed by a 2-digits Hexadecimal value.
 
     User-to-User:%00%00%00%00%00%00%03.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui
 
     User-to-User:%00%00%00%00%00%00%03.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui
 
[[Category:Parameters]]
 
[[Category:Parameters]]

Revision as of 11:22, 27 November 2013

Contents

Encoding options for SIP User-to-User header

Use hexadecimal encoding format

Each byte of the UUI is printed as a 2-digits hexadecimal value. This allows encoding any value in the UUI, including non-printable characters.

   User-to-User:303030303030312e5468697320697320612074657374205555492076616c7565;encoding=hex;purpose=isdn-interwork;content=isdn-uui


Use text encoding format

UUI is stored "as-is" (without any modification) into the SIP header.

Careful with the content of the UUI if using this option: it may render the SIP header illegal depending which ASCII characters are found in the UUI.

   User-to-User:0000001.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui


Use text encoding format with the escape illegal characters option

UUI is stored in the SIP header without modification (like with the text encoding format).

However, UUI bytes that do not corresponds to a printable ASCII character, or that corrsponds to an ASCII character that can't be used within a SIP header will be escaped.

Escaping is made by using character % followed by a 2-digits Hexadecimal value.

   User-to-User:%00%00%00%00%00%00%03.This is a test UUI value;encoding=text;purpose=isdn-interwork;content=isdn-uui
Personal tools