2016-04-01 14:38 GMT+02:00 Tomasz Sterna <to...@xiaoka.com>:

> W dniu 01.04.2016, pią o godzinie 11∶04 +0200, użytkownik Philipp Jacob
> napisał:
> > In the router's debug output I can see the incoming subscribed
> > presence stanza from the contact:
> > sx (io.c:255) decoded read data (323 bytes): <route xmlns='
> > http://jabberd.jabberstudio.org/ns/component/1.0' from='c2s'
> > to='localhost'><presence xmlns:sc='
> > http://jabberd.jabberstudio.org/ns/session/1.0' xmlns='jabber:client'
> > sc:sm='621b457a7181f454ca07bb4326e73e67096ed383' sc:c2s='10'
> > from='user1@localhost/testclient' type='subscribed'
> > to='gloox@localhost'/></route>
> I'm pretty sure the router routed it from 'c2s' to 'localhost' as
> requested.
> Take a look at sm debug log of 'localhost' to see what happened with
> that stanza there.
> According to RFC6121 3.1.5. server should:
> Replace from='user1@localhost/testclient' with from='user1@localhost';
> Then push roster item to all user1 (interested) resources;
> And finally send presence to gloox.
> --
>  /o__  "I always avoid prophesying beforehand because it is much better
> (_<^'  to prophesy after the event has already taken place. " - Winston
The final presence stanza arrives at gloox.
But not the 'subscribed' presence stanza with edited 'from' attribute.

The following messages are the only one mentioning "subscribed" in the sm
debug log during the process of requesting the subscription from

sx (io.c:255) decoded read data (323 bytes):
<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'
to='localhost' from='c2s'>
<presence xmlns='jabber:client' xmlns:sc='
http://jabberd.jabberstudio.org/ns/session/1.0' to='gloox@localhost'
type='subscribed' from='user1@localhost/testclient' sc:c2s='10'
(io.c:96) completed nad: <route ...
sx (io.c:421) queueing for write:
<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'
from='localhost' to='localhost'>
<presence xmlns='jabber:client' from='user1@localhost/testclient'
type='subscribed' to='gloox@localhost'/>
sx (io.c:301) encoding 210 bytes for writing: <route ...
sx (io.c:255) decoded read data (210 bytes):
<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0'
to='localhost' from='localhost'>
  <presence xmlns='jabber:client' to='gloox@localhost' type='subscribed'
(io.c:96) completed nad: <route ...

Reply via email to