Backport SIP Server patches from trunk: r15260, r15267, r15268
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Jan 2010 15:25:11 +0000 (15:25 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 8 Jan 2010 15:25:11 +0000 (15:25 +0000)
commit73b436b93669525d61595950610fc4e59aa19f2f
tree9f95bc8e19d8a52aadb6026b22f14c64d319db6c
parent144512fec57fb00bdd012fb02fb59a4a51f96b4b
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@15281 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