Hi,

To begin, while I was trying to get logs to illustrate my problem, I
have noticed that a Jabber user is shown as online as long as the
gateway is running even if the jabber user has closed his connection.
Moreover, most of the time, I cannot get the online status of my
roster's AIM contacts who are online. Sometimes, removing the contact
from the roster and adding him again allow me to see him as online. To
finish, I noticed that I am not able to log in with an AIM account
immediatly after having logged out with this account, that is to say I
must wait few minutes before my account is available.

If some of these bugs are unknown and if you need further details, I
could try to be a little more precise...

For the double message trouble, I caught the following debug logs.

Description:
UserA is registered to the AIM gateway and receive a message from userB
through the gateway. Both users are jabber user but userA uses a PyAIM-t
gateway on a localhost XMPP server and userB uses a public server's
gateway (develog.com). I tested both AIM accounts with Psi client on the
same servers (localhost and develog) without receiving double message.
But when I use my self made client (using Smack), I get double messages
from userB.

PYAIM-T logs: ----------------------------------------------------------

[2005-05-10 16:44:27]  Sessions:
[2005-05-10 16:44:27]   [EMAIL PROTECTED]
[2005-05-10 16:45:27]  Sessions:
[2005-05-10 16:45:27]   [EMAIL PROTECTED]
[2005-05-10 16:46:27]  Sessions:
[2005-05-10 16:46:27]   [EMAIL PROTECTED]
[2005-05-10 16:47:27]  Sessions:
[2005-05-10 16:47:27]   [EMAIL PROTECTED]
[2005-05-10 16:48:27]  Sessions:
[2005-05-10 16:48:27]   [EMAIL PROTECTED]
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection received
presence packet <presence to='aim.host' from='[EMAIL PROTECTED]/Smack'
type='probe'/>
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection parsed
presence packet "[EMAIL PROTECTED]" "Smack" "None" "probe" "None" ""
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection received
presence packet <presence to='aim.host' from='[EMAIL PROTECTED]/Smack'
id='x1a2I-3'/>
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection parsed
presence packet "[EMAIL PROTECTED]" "Smack" "None" "None" "None" ""
[2005-05-10 16:49:14]  Session [EMAIL PROTECTED] - resource "Smack" setting
"None" "None" "None"
[2005-05-10 16:49:14]  Session [EMAIL PROTECTED] - highest active resource is
"Smack" at 0
[2005-05-10 16:49:14]  Session [EMAIL PROTECTED] - updating status on legacy
service, resource Smack
[2005-05-10 16:49:14]  LegacyConnection: setStatus None None
[2005-05-10 16:49:14]  AIMConnection: setAway None
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection sending
presence "[EMAIL PROTECTED]" "aim.host" "None" "" "None" "None"
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection received
presence packet <presence to='[EMAIL PROTECTED]' from='[EMAIL PROTECTED]/Smack'
id='x1a2I-3'/>
[2005-05-10 16:49:14]  User: [EMAIL PROTECTED] - JabberConnection parsed
presence packet "[EMAIL PROTECTED]" "Smack" "None" "None" "None" ""
2005/05/10 16:49 CEST [B,client] unknown for <legacy.aimt.B instance at
0xb7a0c26c>
2005/05/10 16:49 CEST [B,client] [1, 15, 128, 0, 4027062786L, '\x00\x06
\x00\x01\x00\x02\x00\x03\tUserANick\x00\x00\x00\x07\x00\x01\x00\x02\x00
\x10\x00\r\x00\x10t\x8f$ b\x87\x11\xd1\x82"DEST\x00\x00\x00\x0f\x00\x04
\x00\x00\x11\xc6\x00\x03\x00\x04B\x80\xb8$\x00\n\x00\x04\xc3\xa7\xea\xd2
\x00\x1e\x00\x04\x00\x00\x00\x00\x00\x05\x00\x04Bd\xfc\x0e']
[2005-05-10 16:49:27]  Sessions:
[2005-05-10 16:49:27]   [EMAIL PROTECTED]
[2005-05-10 16:49:54]  B: receiveMessage [EMAIL PROTECTED] UserANick King
Baskit [('Test Message',)] []
[2005-05-10 16:49:54]  User: [EMAIL PROTECTED] - JabberConnection sending
message "[EMAIL PROTECTED]" "[EMAIL PROTECTED]" "Test Message" "chat"
[2005-05-10 16:49:54]  jabw: Sending a Jabber message "[EMAIL PROTECTED]"
"[EMAIL PROTECTED]" "Test Message" "chat"
[2005-05-10 16:50:27]  Sessions:
[2005-05-10 16:50:27]   [EMAIL PROTECTED]
[2005-05-10 16:51:27]  Sessions:
[2005-05-10 16:51:27]   [EMAIL PROTECTED]
[2005-05-10 16:52:27]  Sessions:
[2005-05-10 16:52:27]   [EMAIL PROTECTED]
[2005-05-10 16:52:33]  User: [EMAIL PROTECTED] - JabberConnection received
presence packet <presence to='aim.host' from='[EMAIL PROTECTED]/Smack'
id='x1a2I-634' type='unavailable'/>
[2005-05-10 16:52:33]  User: [EMAIL PROTECTED] - JabberConnection parsed
presence packet "[EMAIL PROTECTED]" "Smack" "None" "unavailable" "None" ""
[2005-05-10 16:52:33]  Session: [EMAIL PROTECTED] - resource "Smack" gone
offline
[2005-05-10 16:52:33]  LegacyConnection: resourceOffline Smack
[2005-05-10 16:52:33]  Session %s - tearing down, last resource gone
offline
[2005-05-10 16:52:33]  Session: Removing "[EMAIL PROTECTED]"
[2005-05-10 16:52:33]  User: [EMAIL PROTECTED] - JabberConnection sending
presence "[EMAIL PROTECTED]" "aim.host" "None" "" "None" "unavailable"
[2005-05-10 16:52:33]  LegacyConnection: removeMe
[2005-05-10 16:52:33]  AIMConnection: removeMe
[2005-05-10 16:52:33]  AIMConnection: sending offline for userb
[2005-05-10 16:52:33]  User: [EMAIL PROTECTED] - JabberConnection sending
presence "[EMAIL PROTECTED]" "[EMAIL PROTECTED]" "None" "" "None" "unavailable"
[2005-05-10 16:52:33]  AIMConnection: sending offline for king baskit
[2005-05-10 16:52:33]  User: [EMAIL PROTECTED] - JabberConnection sending
presence "[EMAIL PROTECTED]" "[EMAIL PROTECTED]" "None" "" "None" "unavailable"
[2005-05-10 16:52:33]  Session: Completed removal "[EMAIL PROTECTED]"
2005/05/10 16:52 CEST [B,client] Stopping factory
<twisted.internet.protocol._InstanceFactory instance at 0xb7a0c2ec>


SMACK DEBUG TOOL:-----------------------------------------------------
The connection corresponding to user A receives those two messages in
the same second. There are identical except their id

<message id="9" to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" type="chat">
  <body>Test Message</body>
  <x xmlns="jabber:x:event">
    <composing/>
  </x>
</message>

<message id="116" to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" type="chat">
  <body>Test Message</body>
  <x xmlns="jabber:x:event">
    <composing/>
  </x>
</message>

What could I do to fix this? How to find where the problem is located?

Regards,
Seb

Reply via email to