Appearance
Site listener-delivery controls
Access: a Platform admin manages every relay on the Platform page's Relays tab. An Organisation admin manages the organisation's own relays in Team → Relays. Both need two-step verification set up on their account. Both appear only when this feature is enabled and set up for your installation.
This page explains how a relay works, how to set one up and how to operate it. Switching the relay feature on for an installation is done by the platform owner: the Relays tabs appear once relay control is on, but phones are only sent to relays after the platform owner also turns on phone assignment.
How a relay works
Without a relay, every Companion phone fetches its language's audio straight from SalamAI's servers: 1,000 phones means SalamAI sends 1,000 copies of each language's audio.
A relay is a small service you run on a Linux machine, usually a server with plenty of upload bandwidth (for example in a data centre close to your audience). It takes one copy of each language's audio from SalamAI and serves the phones that SalamAI sends to it, so SalamAI's servers carry one stream per language per relay instead of one per phone, and you can add delivery capacity for large audiences.
Phones still reach a relay over the internet through its own public address, even when the relay sits in the same building. A relay therefore does not reduce the traffic on your venue's internet connection: place it where it has enough upload bandwidth for every phone it will serve.
- Nothing changes for listeners. The Companion link and QR stay the same. For each phone, SalamAI decides whether to use a relay, based on your organisation's relay choice and the relay's health and free capacity, and tells the phone where to listen.
- It falls back by itself. If a relay stops, becomes unhealthy or is full, its phones move to another allowed relay or straight back to SalamAI. Listeners may hear a short gap. SalamAI's own direct audio places are limited while relays are in use; if they are full, extra phones show captions only until a place frees.
- Audio only. A relay carries Companion audio for standard links. Captions, text and everything else still come from SalamAI, and High privacy links never use a relay.
- Trust is explicit. During setup the relay creates its own identity on the machine. An administrator compares the fingerprint it prints with the one in the console before accepting it. Phones receive short-lived permission from SalamAI for one relay, so a relay cannot serve phones it was not given. It stores no accounts, passwords, recordings or transcripts.
- No open ports. SalamAI gives each accepted relay its own public address through a secure tunnel that the relay opens itself, so the machine needs no inbound ports, only outbound connections (see below).
Set up a relay
Before you start:
- A Linux machine on 64-bit x86 (amd64) with systemd: Debian 12, Ubuntu 22.04 or newer. You need administrator (sudo) rights on it.
- Outbound internet access from that machine: HTTPS (port 443) to your SalamAI console and to SalamAI's audio address, plus the secure tunnel's own outbound connection (UDP or TCP; your platform owner can tell you the exact port to allow). A network that allows only port 443 can install the relay but it never shows Up.
- Automatic time synchronisation that is working (the installer refuses to run until the system reports its clock as synchronised), the
ca-certificatespackage installed, and enough upload bandwidth for the audio of every phone it will serve. - A Platform admin or Organisation admin account with two-step verification set up.
Steps:
- Open Platform → Relays for a shared relay, or Team → Relays for your organisation's own relay, and choose Add a relay. Give it a name people will recognise, such as Hall A relay. On the Platform page every relay goes into the one shared group; if the platform has more than one shared group, Add a relay stops and asks you to name the group to use in Platform → Settings → Relay first.
- The console shows a one-time code and a Download, verify and install command. Copy the command now: the code and command disappear when you leave the page, and the code expires after the countdown shown.
- On the relay machine, open a terminal and paste the command. It asks for administrator rights, downloads the current relay release from your console, checks it against its published checksum, installs it as a system service and enrols it with your code.
- When it finishes, find the relay's fingerprint on the machine: run
sudo journalctl -u salam-relay.serviceand look for the line Salam relay fingerprint. In the console the relay now appears as Pending. Open it, compare the fingerprint on the machine with the one in the console, type or paste it, choose Accept and confirm with your password. Choose Reject for anything you do not recognise. - Wait for the relay to show that its setup is Ready and its connection is Up. If setup reports a problem, follow the explanation shown; a Platform admin can retry the address setup from the relay's menu.
- Organisation admins: in Team → Relays, choose which relays your phones use (see below). The default, Only shared relays, never uses your own relay: pick Our relays first, then shared relays or Only our relays for your relay to receive phones. A shared platform relay receives phones once the platform owner has turned on phone assignment; the Platform page's Relays tab shows whether the shared pool is receiving phones.
- Before the event, test with a real phone on the venue's network: join a Companion link and check that the relay shows live load.
Update or remove a relay
- Update: when a newer relay release is available, get the Download, verify and install command again (choosing Add a relay shows it; the new code is simply left unused and expires) and run it on the same machine without the one-time code: the command contains
--codetwice, so remove both--codeparts, each with the code after it. The relay keeps its identity and its acceptance. - Remove: choose Drain so no new phones join it, wait for its listeners to finish, then Revoke it. Revoking removes its access and its public address. The service can then be switched off or the machine reused.
Switch relays on for your installation
Before you switch on organisation relays
This box is for platform administrators. Organisation relay setup requires the platform owner's approval. Until the platform owner approves it, do not let an organisation you do not fully trust enrol or accept relays, and do not enable organisation relay assignment for it; use only shared platform relays that the platform administrator runs.
Access: Platform admin, in Platform → Settings → Relay. The settings there are grouped in boxes Step 1 to Step 5, numbered as below (adding and accepting relays comes between Step 4 and Step 5); each empty field shows an example of what it expects, and a value that is not accepted says which format it needs. Each change asks for your password and applies within seconds, without a restart (only a wrong password counts towards the limit of attempts). Make these changes when no event is running, in this order:
- Step 1 · Relay address. Fill in the four tunnel address settings: the API token from the account that runs your domain's tunnels and DNS, that account's ID, the DNS zone ID, and Relay hostname zone (the domain your Companion links use, for example
example.com). The token needs permission to edit tunnels in that account and DNS records in that zone. It is write-only and is never shown again. Until all four are filled in, accepted relays get no public address and never receive phones. - Step 2 · Signing keys. First ask the platform owner to prepare the audio service for relays and to give you the signing number to use. Only then set Salam signing epoch to that positive number, for example
1, and Salam accepted access epochs to the same number. - Step 3 · Direct audio places. Set Direct audio fallback seats above the largest number of phones you expect across all events at the same time (the default is 500). While relays are in use, phones of a relay-served run that fall back to SalamAI need one of these places, and ordinary phones count toward them too. Phones beyond the number get captions only until a place frees.
- Step 4 · Relay control. Turn on Salam relay control enabled. The Relays tabs appear, and relay alert emails start (they are on by default).
- Add and accept relays as described above, and wait for Ready and Up.
- Step 5 · Send phones to relays. Turn on Assign phones to Salam relays. Without it no phone is ever sent to a relay. Organisation relays need nothing more, but each organisation must choose Our relays first, then shared relays or Only our relays in Team → Relays. Shared platform relays need nothing more: relays added on the Platform page's Relays tab all go into one shared group, which is used automatically while Salam relay assignment group is empty. That tab shows Shared pool: whether it is receiving phones and how many relays are ready (or that no relay is ready yet, or why it is not receiving phones), and the group's ID with a Copy button. Leave the group setting empty; enter a group ID only when you have several shared groups.
Phone assignment applies to every organisation whose relay choice allows the relays in use. If you switch it on only for a test, run the test while no other event is live, and switch it off afterwards (see below).
Test a relay before an event
Test with real phones on the network your audience will use, well before the event:
- Start a One to Many session with one language and Companion on, and let two people join with the Companion link or QR.
- On the relay's card in Platform → Relays (or Team → Relays), wait for Phones to show 2 and Runs to show 1. If another relay is also in use, a phone may be given that one instead: for this test, choose Drain on every other relay so only the relay you are testing receives new phones (choose Undrain on them afterwards). On each phone, Status shows how far behind the speaker the audio is, and its Player line ends with R: and the relay's name (for example
R:bangkok-1) while the phone listens through a relay, or D while it gets SalamAI's direct audio. - Choose Drain: the two phones keep listening through this relay, but no new phone is sent to it. A phone that joins now gets another allowed relay or SalamAI's direct audio, and Phones on this card does not grow. Choose Undrain to let new phones use the relay again.
- Choose Disconnect (it asks for your password) only while this relay serves no other event: it stops all audio the relay is currently serving, for every session on it, and those sessions do not return to it (a new session can use it again). After a short gap the phones continue on another allowed relay or on SalamAI's direct audio (their Player line shows R: with the other relay's name, or D on direct audio); direct audio needs a free place under Direct audio fallback seats. This is what listeners experience if a relay fails during an event.
- Stop the session when you are done.
Switch relays off
To stop using relays, a Platform admin turns off Assign phones to Salam relays in Platform → Settings → Relay. Phones then use the next delivery method that is still on, usually SalamAI's direct audio. To hide the Relays tabs as well, turn off Salam relay control enabled. Accepted relays keep their identity and acceptance, so you can switch relays on again later without adding them again.
Before switching relays off during an event, make sure Direct audio fallback seats is above the audience: a run that relays were already serving keeps using those places until it ends, and phones beyond the number get captions only. Starting a new session afterwards uses direct audio as usual.
Shared and organisation relays
A relay belongs either to the platform (shared) or to one organisation. The owner is fixed when the relay is added: an organisation's one-time code can only add a relay for that organisation, so nobody types an organisation name on the device and a relay can never move to another organisation.
- An organisation's own relays carry audio only to its own listeners. No other organisation can use them or see them.
- Shared platform relays serve organisations that allow shared relays.
- In Team → Relays, choose which relays your phones use: Our relays first, then shared relays, Only our relays, or Only shared relays (the default). Saving asks for your password and applies at once: a phone on a relay that is no longer allowed moves to an allowed relay or to direct delivery at its next check.
- The Platform page's Relays tab shows every relay with its organisation. Tunnel and address setup, maintenance and repair stay with the Platform admin.
An organisation that still has a pending or accepted relay cannot be deleted. Revoke or reject its relays first.
Register and approve carefully
Open Platform → Relays → Add a relay (or Team → Relays → Add a relay for your organisation's own relay) when adding an approved site device. Give it a meaningful name and follow the one-time enrolment instructions. Keep the enrolment code private and use it within the displayed validity period.
A Pending entry must be verified against the device identity presented by the authorised installer. Never accept an unfamiliar identity or approve a mismatch. Complete the password/security confirmation only after checking the intended site and device. Every relay dialog has a close button (×); it cancels unless a decision is already being submitted.
Read the state accurately
Registration/setup state and actual connection health describe different things. A Ready setup is not proof that a real phone has received audio. Check the current connection, live load and the offered problem explanation, then test with an authorised listener.
Missing reports are unknown, not zero load. If configuration is Applying, wait for Applied or inspect the rejection reason. A rejected change may leave the previous configuration active.
Operate without surprising listeners
- Drain stops new assignments/admissions while current listeners can continue.
- Undrain allows new admissions again.
- Restart/disconnect actions can interrupt listening; coordinate them with the event operator.
- Revoke removes trust/access and follows its managed cleanup states. Use it for the intended device only.
- Group settings and per-device overrides should be reviewed with their displayed limits before saving.
Lowering a capacity limit does not necessarily remove existing listeners. Verify the current load and status after a change.
Alerts and recovery
Follow the platform's problem/recovery alerts and inspect the affected entry. Alert emails go to Platform admins; for an organisation's relay they also go to that organisation's admins, pointing to Team → Relays. Every change to an organisation's relay also appears in that organisation's own Audit trail. Correct the named issue and use the offered repair action when appropriate. Do not accept or repeatedly recreate unknown devices to suppress an alert.
Share a public support reference or sanitised status, never private enrolment details or expanded service configuration.
