Set up ElevenLabs with your SIP trunk

This guide connects an ElevenLabs voice agent to your SMSEdge SIP trunk. When it is done, the agent answers calls to your SMSEdge number and makes outbound calls from it. You need a SIP trunk with at least one number (see Use your numbers with your own PBX or voice AI) and an ElevenLabs agent.

What you need from SMSEdge

Go to AI Calls > Numbers > SIP Trunks and note:

  • The number on the trunk, for example +447700900123.
  • The username and the password of the trunk. If you do not have the password any more, click New password.

Step 1: Import the number in ElevenLabs

  1. In ElevenLabs Agents, open Channels > Telephony.
  2. Click Import number, then From SIP Trunk.
  3. In Label, type a name, for example SMSEdge UK.
  4. In Phone number, type your SMSEdge number with +, for example +447700900123.

Inbound Configuration

This part controls the calls that SMSEdge sends to ElevenLabs.

  • Media Encryption: Allowed.
  • Allowed Source IP Addresses: turn it on and add 46.225.51.50/32. Every call to your number comes from this SMSEdge address.
  • Allowed Numbers, Remote Domains and Authentication: leave them off.
ElevenLabs Import SIP Trunk form: label, phone number, Media Encryption Allowed and Allowed Source IP Addresses 46.225.51.50/32
The number and the Inbound Configuration in ElevenLabs.

Outbound Configuration

This part controls the calls that the agent makes through SMSEdge.

  • Address: sip.comm.com:5060 (no sip: in front).
  • Transport Type: TCP.
  • Media Encryption: Allowed.
  • From Header Domain: Default.
  • Enabled Codecs: G.722, PCMU and PCMA.
  • Authentication: turn it on. In SIP Trunk Username and SIP Trunk Password, type the username and the password of your SMSEdge trunk.

ElevenLabs sets Transport Type to TLS by default. Change it to TCP: our SIP server takes UDP and TCP.

ElevenLabs Outbound Configuration: address sip.comm.com:5060, transport TCP, Media Encryption Allowed, From Header Domain Default, codecs G.722, PCMU and PCMA
The Outbound Configuration.
ElevenLabs outbound Authentication turned on with the SIP trunk username; the password field is empty in the picture
The trunk login. Type your password in SIP Trunk Password.

Click Import.

You can change these settings later: open the number in Channels > Telephony and click Edit. After you change the trunk password in SMSEdge, type the new one in SIP Trunk Password and click Update.

Step 2: Assign the agent

  1. In Channels > Telephony, click the number.
  2. In Agent, select the agent that answers the calls.

Step 3: Send calls to ElevenLabs

  1. In SMSEdge, on the trunk card, click Inbound.
  2. Host: sip.rtc.elevenlabs.io
  3. Port: 5060
  4. Transport: TCP
  5. Click Save.

The trunk card now shows sip.rtc.elevenlabs.io:5060 (TCP) under Calls to your numbers go to.

Use TCP on both sides. ElevenLabs applies Allowed Source IP Addresses only to TCP and TLS calls.

Step 4: Test

  1. Inbound: call your SMSEdge number from your phone. The agent answers.
  2. Outbound: in ElevenLabs, open the number and click Outbound call. Type your own phone number in international format (for example +447700900456) and click Send Test Call. Your phone rings, and the agent talks to you.
  3. In SMSEdge, open AI Calls > Calls and click SIP trunk. You see one inbound and one outbound call, with what each cost.

Do not test by calling your SMSEdge number from the same agent. The agent then talks to itself and the call can run until the trunk's max call length.

If it does not work

ProblemWhat to check
Calls to your number do not reach the agentIn SMSEdge, the inbound address is sip.rtc.elevenlabs.io, port 5060, TCP. In ElevenLabs, 46.225.51.50/32 is in Allowed Source IP Addresses and an agent is assigned to the number.
Outbound calls fail at onceThe username and password in Outbound Configuration match your trunk, and the Address is sip.comm.com:5060 with TCP.
Some countries do not workYour number can call only the countries listed next to it on the trunk card. Ask your account manager to add a country.
All calls stoppedThe trunk status on the trunk card. At zero balance the trunk is suspended until you add funds.

See Use your numbers with your own PBX or voice AI for the limits, the costs and the SIP responses.

Need more help? Contact support.