Docs Guides
ElevenLabs
An endpoint can send its calls to an ElevenLabs agent instead of LiveKit. RelayDock holds the phone side; in ElevenLabs you import the number as a SIP trunk with the values RelayDock shows you, and assign an agent.
What RelayDock does for ElevenLabs
ElevenLabs takes calls as a SIP trunk. It doesn't register with your carrier or PBX, and its static IPs are an ElevenLabs Enterprise feature. RelayDock fills that gap:
- Connects your carrier. RelayDock registers with your carrier account or PBX extension, or receives your carrier's trunk, like for any endpoint.
- Gives the calls a static IP. Calls to ElevenLabs leave from your static IP, so ElevenLabs can allow exactly that address.
- Relays the audio when needed. The endpoint's audio mode decides, as for LiveKit endpoints.
An ElevenLabs endpoint never touches LiveKit: RelayDock creates no trunks or dispatch rule, and the endpoint is ready as soon as you create it. RelayDock holds no ElevenLabs API key and changes nothing in your ElevenLabs account; you enter the values yourself.
Set it up
1. In RelayDock
- Open Endpoints → Add endpoint, choose Registration or Trunk and enter the connection details as for any endpoint.
- In the agent step, under Where calls go, choose ElevenLabs and your ElevenLabs region. There is no agent name: you assign the agent in ElevenLabs.
- Leave Outbound caller numbers empty or include the number you'll import in ElevenLabs: your agent calls out with that number.
- Create the endpoint. Its page shows a Set up in ElevenLabs card with every value for the next step, each with a copy button.
The region is the ElevenLabs SIP address RelayDock sends calls to. Pick the one your ElevenLabs account uses:
| Region in the panel | ElevenLabs SIP address (platform_host) |
|---|---|
| Global (US) | sip.rtc.elevenlabs.io |
| EU (data residency) | sip.rtc.eu.residency.elevenlabs.io |
| India (data residency) | sip.rtc.in.residency.elevenlabs.io |
| Singapore (data residency) | sip.rtc.sg.residency.elevenlabs.io |
| Global (US) — static IPs (ElevenLabs Enterprise) | sip-static.rtc.elevenlabs.io |
| EU (data residency) — static IPs (ElevenLabs Enterprise) | sip-static.rtc.eu.residency.elevenlabs.io |
| India (data residency) — static IPs (ElevenLabs Enterprise) | sip-static.rtc.in.residency.elevenlabs.io |
| Singapore (data residency) — static IPs (ElevenLabs Enterprise) | sip-static.rtc.sg.residency.elevenlabs.io |
Over the API, set platform to elevenlabs and platform_host to the address; leave platform_host out for sip.rtc.elevenlabs.io. agent_name is ignored.
curl -X POST "https://api.relaydock.io/api/v1/endpoints" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "registration",
"provider": "telnyx",
"platform": "elevenlabs",
"platform_host": "sip.rtc.eu.residency.elevenlabs.io",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123"
}
}'import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
json={
"kind": "registration",
"provider": "telnyx",
"platform": "elevenlabs",
"platform_host": "sip.rtc.eu.residency.elevenlabs.io",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123",
},
},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"kind": "registration",
"provider": "telnyx",
"platform": "elevenlabs",
"platform_host": "sip.rtc.eu.residency.elevenlabs.io",
"registration": {
"transport": "tcp",
"username": "SIP_USERNAME",
"password": "SIP_PASSWORD",
"number": "+12025550123"
}
}),
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json()) The endpoint's detail has the values to enter in ElevenLabs in platform_setup (null on LiveKit endpoints).
curl "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.get(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13', {
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json()) The SIP password isn't in the detail. Get it with POST /endpoints/{id}/platform-password, which returns username and password. Each call is recorded in your team's audit log and the response is never cached; the panel's Show and Copy buttons use the same call. Treat the password as a secret: with it, anyone can place calls through this endpoint.
curl -X POST "https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password" \
-H "Authorization: Bearer $RELAYDOCK_API_KEY"import os
import requests
response = requests.post(
"https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password",
headers={"Authorization": f"Bearer {os.environ['RELAYDOCK_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())const response = await fetch('https://api.relaydock.io/api/v1/endpoints/3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a6c13/platform-password', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.RELAYDOCK_API_KEY}`,
},
})
if (!response.ok)
throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())2. In ElevenLabs: import the number
- Open Telephony → Import number → From SIP Trunk.
- Fill in the form with the values from the endpoint page, field by field as in the table below.
- If the endpoint has more than one number, import each one separately with the same values.
3. In ElevenLabs: assign an agent
Assign the agent that should answer to the imported number. Then check an inbound call from the endpoint page (see below).
Field by field
The same user name and password work in both directions: RelayDock answers ElevenLabs's challenge when it sends calls in, and challenges ElevenLabs when your agent calls out.
| ElevenLabs field | Value | In platform_setup |
|---|---|---|
| Label | Any name, for example the endpoint's name. | — |
| Phone number | The endpoint's number, as +E.164. One import per number. | numbers |
| Inbound Configuration | ||
| Media Encryption | Disabled, or Required when the endpoint uses Always Relay. See audio modes. | media_encryption |
| Allowed Numbers | RelayDock needs no value here. | — |
| Allowed Source IP Addresses | Your static IP. ElevenLabs applies this list only on TCP and TLS. | source_ip |
| Remote Domains | RelayDock needs no value here. | — |
| Authentication | The user name and password from the endpoint page. | username; the password from POST …/platform-password |
| Outbound Configuration | ||
| Address | The host name from the endpoint page, for example platform.sip.relaydock.io. Enter the host name only, not a SIP URI. | address |
| Transport Type | TCP. ElevenLabs's default is TLS: change it. | transport |
| Media Encryption | The same value as inbound. | media_encryption |
| From Header Domain | Leave Default. | — |
| Enabled Codecs | Keep the defaults: G.722, PCMU and PCMA. | — |
| Custom Headers | RelayDock needs no value here. | — |
| Authentication | The same user name and password as inbound. | username; the password from POST …/platform-password |
Audio modes and Media Encryption
Media Encryption in ElevenLabs follows the endpoint's audio mode. Set the same value under Inbound and Outbound:
| Audio mode | Media Encryption |
|---|---|
| Automatic | Disabled |
| Direct only | Disabled |
| Always Relay | Required |
The endpoint page always shows the value for the current audio mode. If you change the mode, change Media Encryption in ElevenLabs too.
If Media Encryption stays at ElevenLabs's default, Allowed, your agent's calls offer only encrypted audio (SRTP). In Automatic, RelayDock then relays the call's audio; in Direct only, it rejects the call with 488 srtp-direct.
Limits of the first version
- Signaling between RelayDock and ElevenLabs uses TCP, not TLS.
- No SIP REFER transfers yet. Use ElevenLabs's conference transfer instead.
- The panel's outbound test call isn't available for ElevenLabs endpoints. The inbound check works: on the endpoint page, choose Listen for a call, then call the endpoint's number.
- RelayDock doesn't set anything up in ElevenLabs. When you change the endpoint's audio mode or numbers, update the imported number in ElevenLabs yourself.
Common problems
| What you see | Why | What to do |
|---|---|---|
| Your agent's outbound calls fail with 403 (Caller not allowed) | ElevenLabs calls out with the imported number, and that number isn't one of the endpoint's outbound caller numbers. | Add the number to the endpoint's Outbound caller numbers, or leave the list empty: it then holds the endpoint's number (registration) or the trunk's numbers. |
| Inbound calls fail with 404 from ElevenLabs ("Does not match any SIP Trunks") | ElevenLabs matches the call by the number RelayDock sends in the To header: the endpoint's number on a registration, the dialed number on a trunk. No number imported in ElevenLabs matches it. | Import the number exactly as the endpoint page shows it, one import per number. The leading + doesn't matter. |
| One-way audio, or calls fail with 488 | Media Encryption in ElevenLabs doesn't match the endpoint's audio mode. In Direct only, RelayDock rejects your agent's calls that offer only encrypted audio with 488 (srtp-direct). | Set Media Encryption, inbound and outbound, to the value on the endpoint page: Disabled, or Required with Always Relay. Or switch the endpoint to Automatic or Always Relay. |
Every reason RelayDock rejects a call with is in Troubleshooting.