Get messages from messageListener


I am using Smack for communication between Openfire server and JVoiceXML (interpreter for VoiceXML). My problem is, that I need to sent body of message into JVoiceXML, but messageListener doesn’t react at incoming messages. I dont know how to realize it with packetListener, because I need inicialize JVoiceXML every time, when chat is created (when another user wrote to client).I guess that when I use packetListener, it will sent first message into JVoiceXML, before it will be inicialized. Could you help me with that?

Best regards

Jakub Peschel

Please follow the instructions found at sue when asking for help. Thank you.