How to let iaxclient transfer instant message?

it seems that only when two iaxclients have phoned each other, they can transfer message or text to each other.if they are not calling each other they can not send text. is it right? if right ,how let two iaxclients send text when they just login

any suggestion?