Asterisk as a pbx and sipsak as SER

im using sipsak as SER and asterisk as my pbx in order for my x-lite softphone’s feature that is- instant messaging to be activated…the problem now is — what am i going to do in order for my softphone to send and receive instant messages using SER???