Guide  Voice and video calls on XenForo: TURN relay, permissions and member privacy

Gwendal

Developer
Moderator
Customer
Verified license
18 products BoardGameHub Classified Drafts Emporium Emporium Client GameHub GroupFlair Immersive Messenger Journey Level Plans Teams Watch Party XenCard XenPing XenSpotlight XenStaff XenStreak
Browser calls between members are one of the most requested features for XenForo boards, and the two questions that always follow are "why do some calls never connect?" and "how do I stop members from being pestered with calls?". This guide answers both, using Immersive Messenger, which adds one-to-one and small group calls to XenForo's direct messages.

Before you start, real-time delivery must be set up (see Real-time chat on XenForo without running a Node server): until it is, call buttons stay hidden.

How a browser call travels​

Calls use WebRTC: sound and video go directly from one member's browser to the other's, not through your server, so they cost you no bandwidth. To find each other, browsers use two kinds of helpers:
  • STUN tells each browser its public address. It is free and light; a public STUN server is enough.
  • TURN relays the call when a direct connection is impossible, which is common on mobile data and office or school networks. Without TURN, those calls ring, get answered, then never connect.
Most calls connect directly and never touch the relay; TURN is only used for the ones that cannot.

Step 1: turn calls on​

In Admin CP > Messenger > Options > Calls:
  • Voice and video calls: on.
  • STUN servers: one or more stun: addresses separated by commas, for example stun:stun.l.google.com:19302.
  • Group calls (beta) and People per group call (2 to 6) if you want calls in group conversations. Each extra person adds an upload stream for every participant, so keep groups small.
  • Call notifications: lets a member who has no forum page open still get "X is calling you" through XenForo push notifications.

Step 2: add a TURN relay​

Choose the TURN provider:
  • Cloudflare Realtime TURN: create a TURN key in the Realtime section of your Cloudflare dashboard, then paste the Cloudflare TURN key ID and the Cloudflare TURN API token. Messenger exchanges them for short-lived credentials (valid 4 hours, renewed every hour), so the token never reaches browsers and nobody can reuse your relay outside your forum. Check Cloudflare's current pricing for the free monthly allowance.
  • Metered TURN: enter your Metered app sub-domain (the part before .metered.live) and your Metered API key.
  • Custom TURN server: your own coturn, for example. Enter the TURN servers addresses (turn: or turns:), and preferably the TURN shared secret (coturn's static-auth-secret) so each call gets its own credentials. A fixed TURN username and TURN password work too, but anyone who joins a call can read them.
Click Test STUN and TURN before saving. It runs in your browser with the values in the form and checks that STUN finds a public address and that each TURN address hands out a relay (up to 10 seconds).

Step 3: decide who may call​

In Admin CP > Groups & permissions > User groups, the Messenger permissions include:
  • Start voice calls and Start video calls
  • Start and join group calls (beta)
  • Share their screen in calls
A common setup: give the two "Start" permissions to a trusted or older group only, rather than to every Registered member.

Step 4: let members protect themselves​

In Account > Privacy, right under XenForo's own "Send direct message to you", each member gets Start voice calls with you and Start video calls with you, with XenForo's usual choices: Members only, People you follow, or Nobody. A member who ignores someone (XenForo's Ignore feature) cannot be called by them either.

"I set Nobody but my admin account can still call me." That is expected. These settings work exactly like XenForo's own privacy settings: staff with the Bypass user privacy permission (administrators and moderators by default) are not held back by them, just as they can still send a direct message to someone who chose Nobody. Test with a second ordinary account.

Step 5: stop a member who harasses others​

In Admin CP > Messenger > Restrictions, or from the moderator tools on a profile ("Restrict in Messenger"), give the member the No calls restriction: they can no longer place or join calls, and everything else keeps working. Other restrictions are there for harder cases (No new conversations, No files, Read only), each with an optional end date. Moderators need the Restrict members in Messenger permission to use it.

If calls still fail​

  • Calls ring but never connect, mostly on phones: the TURN relay is missing or wrong. Run Test STUN and TURN again.
  • No call buttons at all: real-time is off, calls are off, or the member lacks the Start voice/video calls permission.
  • The button is there but the call is refused: the other member's privacy settings do not accept calls from you.

Store page: Immersive Messenger. Questions: the Messenger forum, or a private ticket.
 
Ready to make your forum unforgettable?Browse the storeSee the plans