Skip to main content

Prerequisites

Before you begin, ensure you have:
  1. An active phone number on your Wavix account. If you need to purchase one, see our guide on how to buy a phone number.
  2. An active ElevenLabs account with access to ElevenLabs Agents.
Most steps in this guide can be completed in the Wavix portal and the ElevenLabs dashboard, or programmatically using the Wavix API and the ElevenLabs API. Both paths are provided where available.

How it works

  1. A customer calls your Wavix phone number, or your ElevenLabs agent places an outbound call.
  2. Wavix and ElevenLabs exchange call signaling and audio over SIP.
  3. Your ElevenLabs agent processes the audio and generates spoken responses in real time.

Create a SIP trunk in Wavix

ElevenLabs authenticates outbound calls with your Wavix SIP trunk credentials using digest authentication.
  1. In the top menu, go to Numbers & trunks → Trunks.
  2. Click Create new.
  3. Under Authentication method, select Digest.
  4. Enter a SIP trunk name, set a SIP trunk password, and choose one of your account’s numbers as the Caller ID.
  5. Optionally, configure additional limits. If not specified, global account limits apply:
    • Max outbound call duration.
    • Max number of simultaneous calls via the SIP trunk.
    • Max call cost.
  6. Click Create.
Once created, the trunk appears in your account’s SIP trunk list.
Your 5-digit SIP trunk username is generated automatically. In the Wavix portal, it’s displayed in the SIP trunk ID column on the Trunks page.

Import your number into ElevenLabs

  1. Sign in to your ElevenLabs account.
  2. In the ElevenLabs Agents dashboard, open the Phone Numbers section.
  3. Import a phone number from a SIP trunk.
  4. Enter your Wavix phone number in E.164 format with the leading + sign, for example +61290597521, and assign a Label to it. ElevenLabs can’t import numbers without the leading +.
  5. Leave the Inbound Configuration unchanged.
  6. In the Outbound Configuration section:
    • In the Address field, enter us.wavix.net, the recommended Wavix SIP gateway. ElevenLabs hosts its infrastructure in the US.
    • Set Transport Type to TCP.
    • Keep Media Encryption set to Allowed.
    • Under Authentication, enter your Wavix SIP trunk ID in the SIP Trunk Username field and your SIP trunk password in the SIP Trunk Password field.
  7. Click Import.
ElevenLabs outbound configuration screenshot
us.wavix.net is the recommended gateway because ElevenLabs hosts its infrastructure in the US. A full list of regional gateways is shown at the bottom of the Trunks page in the Wavix portal.
Optionally, you can encrypt call media on your Wavix numbers and SIP trunks:
  1. Contact support@wavix.com with a list of the numbers and trunks you want to encrypt media for.
  2. Wait for the Wavix Support team to confirm that encryption is active.
  3. After confirmation, set Media Encryption to Required in the Inbound Configuration and Outbound Configuration sections of the number in ElevenLabs.
To learn more about ElevenLabs SIP trunk configuration, see the ElevenLabs SIP trunking documentation.

Create an ElevenLabs agent

  1. Sign in to your ElevenLabs account.
  2. In the ElevenLabs Agents dashboard, open the Agents section.
  3. Create a new agent from a template or start from a blank one.
  4. Configure your agent: set the system prompt and first message, choose an LLM and spoken language, and select the ElevenLabs voice you want the agent to use.
For more information, see the ElevenLabs Agents quickstart. You can also create agents programmatically with the Create agent endpoint.

Assign the agent to your number

  1. In the Phone Numbers section, select your imported Wavix number.
  2. Click Assign Agent and select the agent you want to answer calls to this number.

Set up inbound call routing in Wavix

Wavix can route inbound calls to a SIP trunk on the platform, a SIP URI, or forward them to a phone number. ElevenLabs requires calls to be routed to a SIP URI.
  1. In Wavix, open Numbers & trunks → My numbers.
  2. Select your number by clicking the menu → Edit number.
  3. Set the inbound call destination type to SIP URI, and enter the destination. The port is required:
    • If media encryption is not enforced on your number:
    • If media encryption is enabled on your number:
  4. Save your changes. Wavix will automatically replace [did] with your actual number.
Now, all calls to your Wavix number are routed to your ElevenLabs agent.

Test your configuration

To test inbound calls, dial your Wavix number. You’ll be connected to your ElevenLabs agent shortly. To place an outbound test call:
  1. In the ElevenLabs Agents dashboard, open the Phone Numbers section.
  2. Select the imported Wavix number.
  3. Select Outbound call.
  4. Select an agent and enter a destination phone number.
  5. Click Send Test Call.
ElevenLabs outbound call dialog screenshot

Transfer a call

Wavix supports using the SIP REFER command. To transfer a call, you need two Wavix numbers, one for an active call and one to receive the transferred call. Make sure inbound call routing is set up on the second number. To enable call transfers in ElevenLabs:
  1. In the ElevenLabs Agents dashboard, open the Agents section and select your agent.
  2. In the agent configuration, add the Transfer to number system tool.
  3. Add a transfer rule:
    • Select SIP REFER as the Transfer type.
    • Select Phone in the Number type dropdown menu.
    • Enter the destination number to transfer active calls to.
    • Specify the condition for the call transfer, for example “A caller wants to speak to a human agent.”
  4. Select Save.
SIP REFER transfers don’t support warm transfer messages. The call is transferred without speaking to the new recipient.
To learn more about ElevenLabs call transfers, see the Transfer to number documentation.

Troubleshooting

  • 603 Declined can occur if the destination’s per‑minute rate is higher than your account’s Max call rate (check the value on the Trunks page). Contact support@wavix.com to request a change if needed.
  • SIP trunk authentication errors. In the Wavix portal, go to Numbers & trunks → Trunks and verify that the SIP trunk ID and password match exactly what you entered in ElevenLabs. Credentials are case-sensitive.
  • Wrong number format. Dial the full international E.164 number, e.g. 19085594899 (US) or 4408001218915 (UK). Do not dial local formats like 9085594899. Strip prefixes like 0, 00, or 011 before the dialed number.
  • Inbound calls not reaching the agent. Verify that the inbound call destination for your number is set to [did]@sip.rtc.elevenlabs.io:5060;transport=tcp, or [did]@sip.rtc.elevenlabs.io:5061;transport=tls if media encryption is enabled. The port is required. Also check that an agent is assigned to the imported number in ElevenLabs.
If you face any other issues, contact support@wavix.com and provide the origination and destination numbers, and the date and time of the call.