[standards-jig] JIDs

Mike Lin mikelin at MIT.EDU
Tue Feb 5 14:04:52 UTC 2002

There is an undocumented "trick" in JID routing that specifies the
following, which will probably solve your problems. If a packet is
directed to a resource and that resource is not found, the server
attempts to route the packet to the longest active resource whose name
matches the beginning of the requested resource. So for example, if I am
logged on only as

mlin at mlin.mit.edu/resource

Packets directed to the following resources will all be routed to me:

mlin at mlin.mit.edu/resource
mlin at mlin.mit.edu/resource2
mlin at mlin.mitedu/resourceblah

How you could use this for transport routing should be obvious. This
addressing requirement is actually the reason why this routing trick is
in the server.


On Tue, 2002-02-05 at 03:20, Jacek Konieczny wrote:
> On Mon, Feb 04, 2002 at 02:03:45PM -0800, Iain Shigeoka wrote:
> > It is a bit contradictory.  You want to use a character _not_ found in
> > usernames, but that is legal in a the JID username field so you can
> > represent all possible usernames!
> In most cases the character needed is character which cannot be part of
> domain name. And rules of making domain names are quite restrictive.
> And if the transport needs something more it can do some escaping on
> the parts of the jid.
> One of idea I have for gateway jid is:
> 	user..target.domain at gateway
> Using resource part of JID for encoding gateway users doesn't seem good
> for me. JIDs that differ only in resource are supposed to be "owned" by
> the same user. And there is already defined meaning for resource of
> transport user (/registered...)
> Greets,
> 	Jacek
> _______________________________________________
> Standards-JIG mailing list
> Standards-JIG at jabber.org
> http://mailman.jabber.org/listinfo/standards-jig

More information about the Standards mailing list