Skip to main content

ElevenLabs Integration

This guide walks you through connecting your Bandwidth phone numbers to an ElevenLabs hosted voice agent. This integration conforms to a bring-your-own-carrier (BYOC) architecture where SIP trunking is used to connect Bandwidth and ElevenLabs on your behalf. Once you're set up, your ElevenLabs agent can place outbound calls and answer inbound calls using your Bandwidth numbers and network.

info

This is a verified integration meaning that Bandwidth has built and tested the integration conformant to the documentation provided herein. This integration is enabled via configuration. No development is required.

This verified integration is only supported for accounts on the Bandwidth Universal Platform. Integrations on the legacy platform are not verified and supported best effort only.

Before you start​

Customers with access to our signature support plan or higher can request support-assisted integration with ElevenLabs. If you have a free-trial or Build account, you can follow the steps below to configure the integration yourself.

What you'll need:

  • A Bandwidth Universal Platform account with ElevenLabs interconnect capability. To enable it, open a ticket with your account representative. Include the Bandwidth admin user who will configure this integration. Be sure to indicate that you want an ElevenLabs integration.
  • An ElevenLabs account with an Agent you want to answer calls

Calling Features Supported​

  • Inbound calls to your agent
  • Outbound calls from your agent
  • Calls redirected from your agent

Configure Bandwidth​

Configure inbound calls​

To send inbound calls to your ElevenLabs agent, create a Voice Configuration Package (VCP) in Bandwidth that routes your number to ElevenLabs' SIP domain.

For full details on VCPs, see Managing Voice Configuration Packages. Otherwise, follow the steps below.

Create the VCP​

  1. In the Bandwidth App, go to Service Management → Voice Configuration and click Add Package.
  2. Enter a Package name (for example, ElevenLabs) and an optional description.
  3. Under Routing, create the Primary route and click Add endpoint.
  4. Set the endpoint type to Route to domain name and enter ElevenLabs' domain: sip.rtc.elevenlabs.io
  5. Click Create Package.
note

sip.rtc.elevenlabs.io is ElevenLabs' default SIP endpoint. If ElevenLabs has assigned you a regional or static SIP endpoint, use that FQDN instead — confirm the correct value in the ElevenLabs Bandwidth guide for your account.

note

If your account has more than one trunk, click + Optional attributes on the Primary route and set Trunk group to your ElevenLabs trunk.

When you're done, your routing should look like this:

Voice Configuration Package with a primary route set to Route to domain name, pointing to sip.rtc.elevenlabs.io

Assign your number to the VCP​

  1. In the Bandwidth App, open the phone number you want your ElevenLabs agent to answer.
  2. In the Voice configuration package drop-down menu, select the VCP you just created, and click Save.

Inbound calls to that number now route to your ElevenLabs agent.

Phone number Voice settings with the ElevenLabs voice configuration package selected and a primary route to sip.rtc.elevenlabs.io

note

You may add multiple numbers to your VCP and calls to those numbers will route to ElevenLabs. Within ElevenLabs you can assign those numbers to the same agent or different agents.

Configure outbound calls​

ElevenLabs authenticates outbound calls using credentials you define on your SIP realm. Complete this section if you plan to place outbound calls.

Create your Bandwidth SIP Endpoint​

The Bandwidth SIP Endpoint is the address ElevenLabs sends outbound calls to: a fully qualified domain name (FQDN) plus a port.

<hostname>.auth.bandwidth.com:port

The FQDN hostname is actually comprised of two parts: 1) a realm name you create, and 2) a Bandwidth supplied part:

<your realm name>-<bandwidthpart>.auth.bandwidth.com

Bandwidth creates the FQDN when you define a SIP realm.

  1. In the Bandwidth App, go to Account → SIP Credentials → Manage Realms and click Add to create a realm.

    • If your account has more than one trunk, select your ElevenLabs trunk in Trunk group.
    • Give the realm a name (e.g. elevenlabs) and an optional description.
    • Bandwidth creates the FQDN for the realm. Copy the FQDN exactly as it appears in the Bandwidth App. You'll combine it with the port from the next step to form your SIP Endpoint.
    • For example, if your realm name is elevenlabs, the FQDN will look like elevenlabs-b3cde1.auth.bandwidth.com.

    Add realm dialog with trunk group ElevenLabs - Default, realm elevenlabs, and the generated FQDN elevenlabs-b3cde1.auth.bandwidth.com

  2. In order to complete the SIP Endpoint definition you will need to discover the port number assigned. Go to Trunk Group Configurations in the Bandwidth App and note the port assigned to your trunk group. You'll combine this with the FQDN when completing setup in ElevenLabs.

    Trunk Group Configurations page listing the default and ElevenLabs trunk groups, with the port number in the Signaling IP column circled in red

For example, a complete SIP Endpoint looks like elevenlabs-b3cde1.auth.bandwidth.com:5833.

Create your SIP credentials​

  1. Go to Account → SIP Credentials and click Add to create a credential.
    • Enter a Username and Password.
    • Select the realm you created when you created your SIP Endpoint.
    • Save. ElevenLabs uses these credentials to authenticate your outbound calls.

Configure ElevenLabs​

With Bandwidth configured, import the number into ElevenLabs using its SIP trunking flow. Follow the ElevenLabs Bandwidth guide and supply:

  • Phone number in E.164 format, with a leading + (e.g. +19195551234).
  • Port: the port assigned to your trunk group. This is the same port you noted from the Trunk Group Configurations page in Create your Bandwidth SIP Endpoint — for example, elevenlabs-b3cde1.auth.bandwidth.com:5833.
  • Transport Type: TLS.
  • Media Encryption: Allowed.
  • From Header Domain: default.
  • Enabled Codecs: PCMU.
  • Authentication: enable the toggle.
  • SIP Trunk Username: the username you created in Configure outbound calls.
  • SIP Trunk Password: the password you created in Configure outbound calls.

When you're done, your trunk configuration should look like this:

ElevenLabs Outbound SIP Trunk Configuration showing the Bandwidth address elevenlabs-b3cde1.auth.bandwidth.com:5833, Transport Protocol TLS (Secure), Media Encryption Allowed (Default), Authentication with username and password configured, and Enabled Codecs PCMU

Once the number is imported, assign your Agent to it in the ElevenLabs dashboard. Inbound calls to the number will now be answered by your agent, and the agent can place outbound calls through Bandwidth.

note

If you provision your ElevenLabs agent to transfer calls, select SIP REFER as the transfer mechanism and SIP URI as the destination type — for example, sip:+12115556700@bandwidth.com.

Troubleshooting​

SymptomLikely causeWhat to check
Inbound calls don't reach the agentVoice Configuration Package misroutedConfirm the package uses Route to Domain Name with FQDN sip.rtc.elevenlabs.io (or your assigned regional endpoint), and that the number is assigned to that package.
Outbound calls rejected with 403/407SIP credential or realm mismatchVerify the ElevenLabs Address matches your Bandwidth realm hostname and trunk group port exactly, and that the username and password match the credential you created against that realm.
Address not accepted by ElevenLabsWrong address formatEnter the realm hostname followed by your trunk group port — for example elevenlabs-b3cde1.auth.bandwidth.com:5833. No sip: prefix and no other reformatting; copy the hostname verbatim from the Bandwidth App.
Call connects but no audio (one-way or dead air)Transport, port, codec, or media-encryption mismatchConfirm Transport Protocol is TLS, that the port in the Address matches the port assigned to your trunk group, that Media Encryption is Allowed, and that Enabled Codecs includes PCMU.
Intermittent routing failuresUsing the wrong SIP endpointIf ElevenLabs assigned you a regional or static endpoint, use that FQDN rather than the default sip.rtc.elevenlabs.io.

Resources​