How to integrate Asterisk+Openfire+X lite+spark?

Hi.

Now, my server have asterisk, openfire+asterisk-im and sip phone plugin, x lite and spark. In my sip.conf have extension 100, 200, 300 and 400. I define Ext. 100 = userA, Ext. 200 = userB, Ext. 300 = userC and Ext. 400 = userD.

My Environment.

This detail of phone mapping.

Username
Device
Extension
Caller ID
userA
SIP/100
100
100
/phone-users.jsp?deviceID=20&userID=19&start=0&range=15 /phone-users.jsp?delete=true&deviceID=20&userID=19&start=0&range=15
userB
SIP/200
200
200
/phone-users.jsp?deviceID=22&userID=21&start=0&range=15 /phone-users.jsp?delete=true&deviceID=22&userID=21&start=0&range=15
userC
SIP/300
300
300
/phone-users.jsp?deviceID=24&userID=23&start=0&range=15 /phone-users.jsp?delete=true&deviceID=24&userID=23&start=0&range=15
userD
SIP/400
400
400
/phone-users.jsp?deviceID=26&userID=25&start=0&range=15 /phone-users.jsp?delete=true&deviceID=26&userID=25&start=0&range=15

On labtop A, installed x lite and spark and x lite=Ext.100, spark=userC.

On labtop B, installed x lite and spark and x lite=Ext.200, spark=userD.

Now, on x lite Ext.100 can call to Ext.200. On spark userC can chat userD. The x lite it have IM(chat) feature but i don’t use it. I want to use x lite chat(IM) with spark. How to do it?.