How to set up Public IM Connectivity?
Start with reading through this http://www.microsoft.com/communicationsserver/en/us/public-im-connectivity.aspx
Then do the provisioning by following this guide Office Communications Server Public IM Connectivity Provisioning Guide