I’m integrating smack with a VXML server (to get IM automation), and have an issue when using it with gtalk. My server looks just like another gtalk user (eloquanttest) and responds to chats as another user would…
Generally it works ok but:
gtalk seems to set a new threadId for every message, hence smack sees every message as a new Chat (and the MessageListener is never called!). I have worked round this as suggested elsewhere by keeping a record of all connected users and re-using the same client object, but this is kind of clunky. Anyone know if this is ‘good’ behaviour or is there a ‘right’ way to deal with this?
is there a way to be notified when a new user ‘starts’ a chat window? It seems like I only get a notification when the first message is actually sent, and not for activities such as opening or closing the chat window? I guess this might be client specific?
big issue : it works ok when the other user connects using the “real” gtalk client, but if they are a user created by the “chatback badge” for my vxml user account, then this either never connects to me, or sends a load of messages that smack doesn’t seem to understand. Has anyone got smack to work with the chatback badge gadget?
debug : if I enable the smack debug, this pops up a nice debug window to examine the messages etc. However, in a server linux headless environment this isn’t quite so good. How do I get the same debug info (dump of messages in/out etc) out to a debug log?
thanks for any help you can give me, and keep up the good work guys!