powered by Jive Software

Openfire php rest api create one to one and group chat ,audio and video calls

Hello All
I want develop chat application with below features,
1.one to one chat
3.audio call
4.video call,
i have created users and rosters and groups and adding members to group.so i want create chat .present i used latest version of openfire and php rest api.please help me for below things.
1.what is the plugins required for one to one chat and group chat as well as video and audio call.
2.i used mysql database. how to store chat history
thanks great
3.json or xml which is better for chat.