On sze, márc 06, 2013 at 20:29:44 +0100, Landry Breuil wrote:
> On Wed, Mar 06, 2013 at 08:01:32PM +0100, LEVAI Daniel wrote:
> > Hi!
> > 
> > <Preface>
> > You can use Google Talk with Bitlbee, because it supports jabber, but on
> > OpenBSD with one condition: you must specify the server name for the
> > account (eg.: 'account set server xmpp.l.google.com', because bitlbee's
> > SRV DNS queries don't work on OpenBSD [1].  Basically Bitlbee uses the
> > ominous ns_*() functions for SRV type DNS lookups, and those are missing
> > from our libc. So now, when Bitlbee tries to fire up a GTalk account, it
> > can not query the SRV record(s) for _xmpp-client._tcp.gmail.com, and
> > falls back to querying A records for gmail.com (given that the account
> > id is username(at)gmail.com) and fails to connect.
> > </Preface>
> 
> This is not specific to gmail, it's in the protocol itself. And fwiw, it
> seems it works ootb with the libpurple flavor of bitlbee, connecting
> with an account f...@bar.com where the server is xmpp.bar.com and there's
> a dns srv record such as
> $host -t SRV _xmpp-client._tcp.bar.com
> _xmpp-client._tcp.bar.com has SRV record 0 5 5222 xmpp.bar.com
> 
> With that i dont need to set the server in the account config - so you
> might want to have a look at how libpurple works here.

Oh, I kind of forgot about libpurple. Of course, it totally replaces the
IM account handling. Thanks for the pointer!

> That said, i'll recheck with the regular unflavored bitlbee, and with
> your diff.

Thanks!


Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to