Backport SIP Server patches from trunk: r15260, r15267, r15268
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Jan 2010 15:28:28 +0000 (15:28 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Jan 2010 15:28:28 +0000 (15:28 +0000)
commit2d19ab971642c10e0ee5f5ff17c40cef199b03d6
tree2684ba62b1fa68234239ae050687a0a68492a5bd
parent1c6fc399a66bd4a0b51e7c02c5f47e0091d07891
Backport SIP Server patches from trunk: r15260, r15267, r15268

r15260: Enable the SIP server to speak UTF8 or ASCII, defaulting to ASCII

Some SIP clients have implemented UTF8 support, and it is desirable to
avoid mangling non-ASCII characters when possible, so a new <encoding>
option in the SIPServer config file enables sites to specify an
alternate encoding (such as "utf8"). The example oils_sip.xml file
will continue to default to ASCII, and if no <encoding> option is
supplied in the config file, ASCII will be the default.

In addition, this patch improves the ASCII option by applying the
ASCII mangling to all text fields, as well as ensuring that the
incoming data is in Normalization Form D mode to make the mangling
work cleanly.

Other encodings such as iso-8859-1 can be specified, but to properly
handle other encodings a transliteration phase would have to be added
to the OpenILS::SIP::clean_text()...

r15267: Typo: in theory fixing this will eliminate some calls

r15268: We don't actually have access to the config from $self, but we can get it from OpenILS::SIP

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15283 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/examples/oils_sip.xml.example
Open-ILS/src/perlmods/OpenILS/SIP.pm
Open-ILS/src/perlmods/OpenILS/SIP/Item.pm
Open-ILS/src/perlmods/OpenILS/SIP/Patron.pm