[jdev] external contact subscription: s2s problem?

Konstantin Klyagin k at thekonst.net
Wed Aug 31 03:39:34 CDT 2005


I've got a strange problem with a component I am developing. When
it tries to subscribe to someone's presence and the person is
registered on the same Jabber server the component connects to,
everything is fine. Let's say, the component is called
component.myhost.com and the person is konst at myhost.com. No problem
with subscription.

However, when I try to subscribe to someone's presence, and he is
logged in via an external server, I receive the 502 error. This is
how it looks like:

[OUT]<presence from='account1 at component.myhost.com' to='thekonst at jabber.com' type='subscribe'/>

[IN]<presence from='thekonst at jabber.com' to='account1 at component.myhost.com' type='error'><error code='502'>Server Connect Failed</error></presence>

Also, when I log in under some user at myhost.com (the hostname is
replaced, but the one I use can be resolved, as well as
component.myhost.com), I can add my jabber.com contact to the
roster and talk to it. Only the component cannot. What I am doing
wrong?

Thank you for answers in advance.

-- 
konst at http://thekonst.net/



More information about the JDev mailing list