Asterisk presence integration with OpenFire XMPP server

Hi all,

here is my question regarding making asterisk a generic contact center having both voip and IM contacts.

Let’s suppose i want the operator to receive a call or a chat but not together in the same time.
I would like to integrate for example the OpenFire XMPP server capabilities with the asterisk ACD feature.

In this case i need to communicate from XMPP -> asterisk the chat presence information (so that operators result busy when in a chat).
Is it possible to have APIs to set into asterisk the chat user presence coming from an external OpenFire server?

Thank you