This Question is Not Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (5 pts)
8 Replies Last post: Aug 15, 2007 8:37 AM by andrisi  
Bronze 6 posts since
Aug 6, 2007
Currently Being Moderated

Aug 13, 2007 2:49 PM

XMPP routing? - Google Apps' GTalk client...

 

We're using a Google Apps for You Domain domain, and it provides GTalk chat client too (it it's Gmail variant), but it always connects to Google's servers, and not the ones specified in the DNS SRV records for my domain - an Openfire server of ours. We still would like to provide the gateway functionality of Openfire to our users (to access MSN, ICQ, etc. there) so I'm thinking if it is possible to use it as some kind of router that forwards IMs to Google's servers (from any gatewayed network) if it sees a user of ours login to them. Do you think it's possible with Openfire and your gateway or maybe some other software - and if not, do you think it will ever be implemented? Anyone else run into this problem?

 

 

 

 

Daniel Henninger KeyContributor 2,941 posts since
Aug 10, 2005
Currently Being Moderated
Aug 13, 2007 7:47 PM in response to: andrisi
Re: XMPP routing? - Google Apps' GTalk client...

I'm going to answer you here even though we started this conversation over email.  (for the benefit of others)

 

First off, here was my first response:

Wow  =)  Ok, a couple of blanket statements first.  The IM Gateway plugin explicitly only works with local accounts.  (it uses openfire internals and therefore can't work with external things without major reworkings and ejecting some of the "cleanness" about the implementation)  PyAIMt, PyICQt, PyMSNt, PyYIMt, PyIRCt, PyXMPPt ... all of them should work remotely.  (like you can set up an openfire or whatever server somewhere and they can be used from GTalk)

 

That said, I'm afraid I don't really know anything about forwarding IMs.  You might be able to do something where you "tie" an openfire account to a gtalk account and somehow log in the openfire account with the gtalk account and forward messages ... but that sounds kinda scarey.  ;D

 

I don't know if I'll ever implement remote servers being able to connect to the plugin.  It completely destroys any ability to be "smooth" about the whole process.  Like on first registration you'd be back to getting a flood of "will you add me?" from each and every contact.  There's lots of room for things getting out of sync.  It's actually part of the reason why I adored creating a plugin based on internals.  =/

 

Now to answer your followup:

Thanks for the answer! What do you mean by usable from GTalk. The

Google Talk client? That will only connect to Google's servers. Or you

mean generally an XMPP client?

 

With the python based transports, they really don't care where you are coming from.  They follow XEP-0100 more or less dead on.  So even if you are on google talk, you can register your google talk account with, say, aim.myserver.org.  The IM gateway plugin can not do this because it uses mechanisms inside of Openfire to tie directly into your roster and such... which means it can't tie into a roster on another server somewhere else which means it can't really be used from an external server.

Daniel Henninger KeyContributor 2,941 posts since
Aug 10, 2005
Currently Being Moderated
Aug 14, 2007 7:09 AM in response to: andrisi
Re: XMPP routing? - Google Apps' GTalk client...

I believe there have been a number of folk using PyAIMt and PyICQt from their google talk accounts.  I have had reports filter in here and there.  Google talk's servers have s2s enabled like anything else and you can connect to them from non-google talk clients.  Like one could use Psi, log into the google talk servers, use service discovery to connect to another server somewhere ruinning PyAIMt and such, and register remotely.

Daniel Henninger KeyContributor 2,941 posts since
Aug 10, 2005
Currently Being Moderated
Aug 14, 2007 9:16 AM in response to: andrisi
Re: XMPP routing? - Google Apps' GTalk client...

Of course I get the difference but I don't think we're syncing up here.  =)  If you register from, say, Psi with a transport at aim.myserver.org, then log in with the real google talk client, it "just works".  aim.myserver.org is now a roster item on your roster like anything else, and receives presence when you log into your google talk account regardless of whether it's the standalone client or the gmail+gtalk mini-app.  All aim.myserver.org cares about is that it hears your presence as you come online.

 

The main drawback here is it requires an extra step ... logging in from a different client than any of the gtalk ones first to register.

 

One could probably write up a little web interface to effectively perform the steps on the user's behalf:

1. log into their gtalk account

2. register with aim.myserver.org from said gtalk account

3. handle the various "do you want to subscribe to this contact?" spew that comes forth

4. log out

 

Then the user could log in with a real gtalk client and be done with it.  Would "just work".  Like I said before though, this does not work with the IM gateway plugin and would only work with other transport implementations.  Unless you can figure out some magical way to tie together a local openfire account with a google talk account, the IM gateway plugin won't be able to handle this.  (at least not at present, possibly never)

Daniel Henninger KeyContributor 2,941 posts since
Aug 10, 2005
Currently Being Moderated
Aug 14, 2007 10:20 AM in response to: andrisi
Re: XMPP routing? - Google Apps' GTalk client...

Good luck!!! If you don't mind, let us know how it goes!  =)

More Like This

  • Retrieving data ...