Symptoms
When you run a Microsoft Unified Communications Managed API (UCMA) 3.0 endpoint on a Lync Server 2010 server, a Lync 2010 user might receive instant messages when the presence status of the endpoint is set to Do Not Disturb.
Cause
This issue occurs because the UCMA endpoint uses the aggregateState value instead of the userState value. This happens when the userState value is set to Do Not Disturb, and the aggregateState value is set to Away.
Resolution
To resolve this issue, install the following cumulative update:
2500449 Description of the cumulative update for Lync Server 2010, Unified Communications Managed API 3.0 Runtime: November 2011