I use this code to send messages.
And this for receiving messages sent to my JabberID, asynchronously.
Sending message is ok.
But receiving message from another JabberID don’t achived until I send a message to that JabberID.
And after that I receive messages sent by it properly.