How do XMPP clients find TURN or STUN servers? XEP-0215 isn't supported (by any servers or clients afaik), but XEP-0176 suggests using XEP-0215?
I am running both an XMPP and TURN server, and I would like XMPP client to be informed or discover my TURN server. What do pidgin/empathy (the clients I need to support) do? Is there a canonical cross-client approach? Possibly:
- Embed information in disco (XEP-0030 – would be misuse)
- Servers use XEP-0114 to work some "magic"
- Clients check DNS records
- Clients check host (derived from JID) @ well-known port
- Clients do nothing (I hope not)
Thanks.
Also I am asking in the context of Jingle/ICE/RTP, however this applies to any use of TURN with XMPP.
Best Answer
Some XMPP clients (e.g. libpurple-based clients such as Adium and Pidgin) use DNS SRV records, cf.:
http://wiki.xmpp.org/web/SRV_Records#STUN_SRV_records
e.g.
http://wiki.xmpp.org/web/SRV_Records#TURN_SRV_records
e.g.