LP 1463943: Encode output messages.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 16 Jun 2015 18:33:52 +0000 (14:33 -0400)
committerJason Stephenson <jason@sigio.com>
Mon, 2 Jan 2017 14:57:58 +0000 (09:57 -0500)
commita4f365f8acbeb42fc9e4e32bbbbdf9e4aebd75ab
tree3de9e04f1b5413ec92e9044b11b237c8489b950b
parentbb0bdfed2ed0ebb106710fa6ae36bacd4fabb4d7
LP 1463943: Encode output messages.

This commit adds support for an encoding attribute that can be
added to accounts in the configuration file.  When set, SIPServer
will encode response messages in the specified encoding.  Valid
encodings are those listed in the Encode::Supported man page.

This feature is useful if you have a vendor who cannot support
the default UTF-8 output by SIPServer.

An example is provided in SIPConfig.xml.  The lpl-sc account has
been set to use the ascii encoding.

This particular code was mostly taken from a patch to Koha's
SIPServer by Adrien Saurat <adrien.saurat@biblibre.com>,
Christophe Croullebois <christophe.croullebois@biblibre.com>,
and others.

http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9865

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
SIPconfig.xml
Sip.pm
Sip/MsgType.pm