XMPP with Asterisk

I want to configure Asterisk with XMPP, can any body please help me finding a step by step guideline for that. Also is it possible that both XMPP and Asterisk use the same database.

Thanks in advance

For step by step instructions, please hire a consultant on the Biz and Jobs forum.

XMPP is a protocol so is incapable of accessing a database.