PT48390337 - SQA error log messages in sipXproxy.log

SQA clients and server logged various error messages because client
connections to server were closed by server when error conditions
where hit in the socket parsing func  which was buggy. The server side
parsing of read buffer was fixed: parsing will be started only when
min message size was read in buffer, expect that several reads might
not give a full message, preserve parsing state between subsequent socket
reads, refactored the parsing func completely because the old design was
using two functions which in rare cases would get stuck in infinite recursion.
Other fixes:
Added a flag to mark that a socket was closed so that subsequent attempts
of closing will be discarded. This also resulted in lots of benign error logs.
Removed duplicate code that closed a socket from various locations: connection
class, listener class.
Check if read error is EOF to know that connection was closed gracefully.
PT-50421737 - added fax did to alias verification.
fixed 2 files failing DTD validation
PT-50431227 - fixed cdr display in admin portal
OpenACD 2.0 integration
Fix build, deps for sipxopenacd
Update sipxopenacd submodule
PT-50715719 - Increase rev of sipxopenacd
build : only increment sipxopenacd revno. #nochangelog
build: requires meck deps to build
build: requires meck deps to build
PT-50064853 fix sipxcdr uninstall
Merge branch 'PT48390337' into release-4.6
    Align with Openfire changes

    Some interfaces have changed packages

PT318571 Changes required for adding mongodb providers to Openfire
Some refactoring needed for DB access
Upgraded monogdb java driver (2.9.0 contained a bug that triggered during my tests)
Set java sources encoding to UTF-8 (one test that used german characters was failing when trying to build RPMs for CentOS)
Cleaned up projects' classpaths (removed references to SIPX_SRC_TOP and SIPX_JAVA_TOP)

PT36956563 Additional properties needed for clustering.

PT318571 Changes required for adding mongodb providers to Openfire
Some refactoring needed for DB access
Upgraded monogdb java driver (2.9.0 contained a bug that triggered during my tests)
Set java sources encoding to UTF-8 (one test that used german characters was failing when trying to build RPMs for CentOS)
Cleaned up projects' classpaths (removed references to SIPX_SRC_TOP and SIPX_JAVA_TOP)

Updated lastest Openfire

Fix style -  sipXconfig should  use commons logging factory instead log4j

Fix MongoFactory init when openfire not installed

Fix Mongo intialization for sipXconfig when installing from sources

Openfire integration fixes:
- Generate openfire.properties, replicate through cfengine
- add HA property to relax validator, configurable
- remove unused providers from openfire.vm
- fix openfire service status in sipxconfig page
- remove mechanism for saving properties in OF db

Additional cleanup in OF config file - inject providers as map

Fix admin portal login - use JIDs

Take 2 - try to fix NPE when getting user presence

Changes required by Openfire 3.8.1 API.

Fixed eclipse projects' classpaths

Moved Openfire reference to 3.8.1
Removed unused project dependency

Removed references to jodatime
PT48083963 - Calls hold/pickup fails in a HA setup with two servers and shared lines

Two changes were done in proxy's NAT traversal plugin:
- Use a modified Contact header (the header was modified to contain endpoint's public
and private address) for all message types except for SUBSCRIBE and NOTIFIES. Previously,
the header was restored for all messages except INVITES in order to fix some presence
issues. Because of this approach a proxy was unable to route correctly other requests
such as PRACK or ACK.
- Do not let a proxy change the request URI of a request if it is not the "last" proxy
to route that request to the endpoint behind NAT. If a proxy changes the request URI
the next proxy will not be able to route it correctly.
Removed a debug log message from proxy. Lowered the level of another log message from SAA.
PT-336655 Multiple zones in a cluster
XX-9767

User's CDRs, voicemail timestamps (including IVR prompts), schedules follow user's timezone.
Timezone can be set at:
branch level
group level
user level

Both admins and users may change a user's timezone.
PT-49088557 - have sipxconfig generate aliases when VM and AA role is enabled. This ensures vm alias permission is in replicated in mongo.
Revert "PT-49088557 - have sipxconfig generate aliases when VM and AA role is enabled. This ensures vm alias permission is in replicated in mongo."

This reverts commit 9dffb768fefbc453e5337c0e572680a605efdb01.

Reason: code should be in post commit not in replicate!!
PT-49088557 -have sipxconfig generate aliases when VM and AA role is enabled. This ensures vm alias permission is in replicated in mongo.