[JDEV] getting iqs to remote servers

Mark Cheverton ennui at morat.net
Wed Jan 23 11:04:35 CST 2002


Hi guys,

I'm currently trying to get it so that a user on one server can register
for a group on another server (I've fixed a bug or two in mod_groups and
realised my Gabber version doesn't support browsing, so alls wel getting
it working now).

Currently when a user tries to send the packet it seems to get delivered
to the wrong instance (the servers are all CNAMEd to the same process
atm, but setup as totally seperate vhosts with their own service
sections):

Wed Jan 23 16:38:16 2002  mio.c:698 MIO read from socket 12: <iq
type="set" id="JCOM_46" to="im.lon.sports.com/groups/london"><query
xmlns="jabber:iq:register"><name>madr</name><key>aca71f39fd338d5cb2a550eba434caa9aff4ede1</key></query></iq>
Wed Jan 23 16:38:16 2002  client.c:243 pthsock_client_read called with:
m:8292910 flag:3 arg:82930F0
Wed Jan 23 16:38:16 2002  deliver.c:460 DELIVER 4:im.mad.sports.com
<route to='test31 at im.mad.sports.com/82B2000' from='12 at c2s/8292910'><iq
type='set' id='JCOM_46' to='im.lon.sports.com/groups/london'><query
xmlns='jabber:iq:register'><name>madr</name><key>aca71f39fd338d5cb2a550eba434caa9aff4ede1</key></query></iq></route>
Wed Jan 23 16:38:16 2002  deliver.c:649 delivering to instance
'im.mad.sports.com'
Wed Jan 23 16:38:16 2002  deliver.c:83 (81BC4D0)incoming packet <route
to='test31 at im.mad.sports.com/82B2000' from='12 at c2s/8292910'><iq
type='set' id='JCOM_46' to='im.lon.sports.com/groups/london'><query
xmlns='jabber:iq:register'><name>madr</name><key>aca71f39fd338d5cb2a550eba434caa9aff4ede1</key></query></iq></route>
Wed Jan 23 16:38:16 2002  users.c:137
js_user(test31 at im.mad.sports.com,82B3C68)
Wed Jan 23 16:38:16 2002  mtq 81EE808 entering from pth
Wed Jan 23 16:38:16 2002  mtq 81EE808 queue call 8294078
Wed Jan 23 16:38:16 2002  sessions.c:234 THREAD:SESSION:FROM received a
packet!
Wed Jan 23 16:38:16 2002  modules.c:124 mapi_call 1
Wed Jan 23 16:38:16 2002  modules.c:147 MAPI 82B22A8
Wed Jan 23 16:38:16 2002  mod_groups Register request
Wed Jan 23 16:38:16 2002  mod_groups Getting info london

although I may be confusing things and it may be the responsibility of
the module to send this on rather than the server itself, though it
seems to me that if something is addressed to
im.lon.sports.com/groups/london then it should be sent there by the
server without ever touching the local module.

Can someone give me a few pointers here to understand why Im having this
delivery issue, or will jabber not deliver these formats of remote JIDs
at all?

-Mark




More information about the JDev mailing list