[jdev] _c2s_client_sx_callback

Matthias Wimmer m at tthias.net
Fri Jun 11 02:07:03 CDT 2004

Hi Remy!

Remy HAREL schrieb am 2004-06-10 14:45:39:
>  Yet, this is the result of a tcpdump listenning to the router. We can 
> see the datas I added ( begins by Seq: ... ) and the to field, that I 
> can know. But there is a "from" field in this stanzas, there's really no 
> way to get it with NAD_AVAL ? If I could get the "to" attribute I should 
> probably get the "from" attributes, shouldn't I ?
> <route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' to='c2s' 
> from='jabber.gicm.net' Seq:='db93e84
> c6f209da33c7c1c56645fe4c0:2'><message xmlns='jabber:client' 
> xmlns:sm='http://jabberd.jabberstudio.org/ns/session/1.0' 
> to='rem at jabber.gicm.net/Gabber' type='chat' 
> from='rem2 at jabber.gicm.net/Gabber' sm:c2s='7' 
> sm:sm='4d93ce68dba15fe9aaa97ff98d687aed48a4dc4c'><body>test8</body></message></route>

This is a stanza you got from the router and that is from the session
manager. Sure this one has a from attribute and it has been added by the
session manager.

But you asked why you don't get them in _c2s_client_sx_callback. This
callback is called for stanzas, that come from the client, not from the
router. These stanzas don't have from attributes.

Tot kijk

Fon: +49-(0)70 0770 07770       http://matthias.wimmer.name/
HAM: DB1MW                      xmpp:mawis at amessage.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20040611/bb28a55a/attachment-0002.pgp>

More information about the JDev mailing list