How to set up Ejabber with My Asterisk 11.9.0

I have successfully installed the ejabber on my Asterisk server but I haven’t been able to find out how to integrate it with Asterisk now. Please note that I am using freebpx too. I am seeking to get chat presence and phone status. If someone can help with some explanation or documentation I will be very grateful

i saw several documentation talking about res_jabber module but i haven’t seen it on my asterisk release and don’t know how to get it. Could anyone tell me if it can work or should I move on another Xmpp or whatever IM server to get it work on Asterisk?

For FreePBX limited issues, use