How to implement Punjab to support see-other-host

46 views
Skip to first unread message

Mac

unread,
Oct 12, 2012, 3:00:10 PM10/12/12
to punja...@googlegroups.com
Hi

I'm trying to create Windows Live Messenger client using Strophe + Punjab
but when I start connect to WLM, I got response like this

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
  <stream:error xmlns:stream="http://etherx.jabber.org/streams">
    <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
  </stream:error>
</body>

I found someone told 
"The problem is en the used BOSH and the see-other-host redirection support.
I changed the BOSH to Punjab. Now I'm modifying the Punjab implementation for support the see-other-host redirection, because in a point was lost the other host."

but I don't know how to implement it...
need some advise

regards
mac

Christopher Zorn

unread,
Oct 13, 2012, 3:12:10 PM10/13/12
to punja...@googlegroups.com
Punjab will have to handle the stream error and then retry with the new host and port. Its possible and when I get some time I may implement it. The question I have is why is it needed? Why don't they just update their DNS to point to the correct host? Also, can you just use the new host to connect to in the mean time? You can use the route attribute if DNS does not work. 

--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/punjab-xmpp/-/i_8vQtMyLBgJ.
To post to this group, send email to punja...@googlegroups.com.
To unsubscribe from this group, send email to punjab-xmpp...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/punjab-xmpp?hl=en.

Mac

unread,
Oct 14, 2012, 11:35:19 AM10/14/12
to punja...@googlegroups.com
thanks for your reply

I use Strophe and connect to WLM with this
<body rid='285706604' xmlns='http://jabber.org/protocol/httpbind' to='messenger.live.com' xml:lang='en' wait='300' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>

but I don't know why WLM server reply empty in see-other-host section
<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
  <stream:error xmlns:stream="http://etherx.jabber.org/streams">
    <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
  </stream:error>
</body>
I don't know what is the source of this problem...

regards
mac

Mac

unread,
Oct 26, 2012, 3:22:36 PM10/26/12
to punja...@googlegroups.com
after digging log file
Punjab received <stream:error> from WLM server correctly like this

2012-10-27 00:57:58+0700 [XmlStream,client] SID: bb6ff836c7eb9447450c3c2f337f8aaccb0d6347 => RECV: '<stream:error xmlns:stream="http://etherx.jabber.org/streams"><see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams">BAYMSG1010717.gateway.messenger.live.com</see-other-host></stream:error>'

but problem is when create <body>, it lose text inside <see-other-host> like this

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
  <stream:error xmlns:stream="http://etherx.jabber.org/streams">
    <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
  </stream:error>
</body>

I modified twisted a little (in file twisted.words.protocols.jabber.error.py), and now I can change to this

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
  <stream:error xmlns:stream="http://etherx.jabber.org/streams">
    <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
    <text xmlns="urn:ietf:params:xml:ns:xmpp-streams">BAYMSG1010717.gateway.messenger.live.com</text>
  </stream:error>
</body>

but it would be better if can change to

<body xmlns="http://jabber.org/protocol/httpbind" type="terminate" condition="remote-stream-error">
  <stream:error xmlns:stream="http://etherx.jabber.org/streams">
    <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams">BAYMSG1010717.gateway.messenger.live.com</see-other-host>
  </stream:error>
</body>

any suggest?

thanks in advance
mac

Christopher Zorn

unread,
Oct 27, 2012, 12:11:53 PM10/27/12
to punja...@googlegroups.com
Until this bug is fixed try and use BAYMSG1010717.gateway.messenger.live.com as your host.


To view this discussion on the web visit https://groups.google.com/d/msg/punjab-xmpp/-/9NYc8i7dgkYJ.

Rohit Tailor

unread,
Jan 25, 2013, 7:00:36 AM1/25/13
to punja...@googlegroups.com
Hi,

I am also facing the same issue. Is it fixed ?

If not please help me in changing the twisted file :


Please 

Christopher Zorn

unread,
Jan 26, 2013, 12:21:30 PM1/26/13
to punja...@googlegroups.com
I have not had a chance to fix it. The last person to do this just worked around it by using the host it redirects to. 


--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to punjab-xmpp...@googlegroups.com.

To post to this group, send email to punja...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages