Parameter: SIP: User-to-User encoding

From TBwiki
Revision as of 11:22, 27 November 2013 by Abrassard (Talk | contribs)
Jump to: navigation, search

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