I am observing curious behaviour trying to send messages via a connection to google talk. I have an unfiltered packet listener on the connection, but messages sent by the gtalk user do not get passed to it. However, I do see them in the debugger. The same code, connected to the google talk user by connecting via jabber.org, does receive the messages. I am able to send messages to the google talk user.
The message coming directly from the google talk user looks like this:
As you can see, the main difference is in the resource on the To field. Smack, on the google connection, is stripping part of the resource and adding in a random string. However, the resource is the right one, so I don’'t know why the message is not being delivered to my packet listener.