Bandwidth
Send your Bandwidth numbers to Vapi over a SIP trunk (a standing internet phone connection) that you set up in Vapi’s dashboard (Connect in Vapi), then pick the number in Vapi for CX.
- Receive calls: Through a Voice Configuration Package that routes to the Vapi trunk, as Bandwidth’s Vapi guide describes.
- Transfer to a phone number: Offered. Vapi passes the handoff to Bandwidth.
- Transfer to a SIP address: Offered. Vapi passes the handoff to Bandwidth.
- Return the call to their system: Only when a contact center or phone system that takes calls back is linked to the line. See Handing callers to people.
- Place calls: With a Bandwidth SIP realm and credential. Bandwidth’s Vapi guide adds them as a second trunk; this page adds them to the trunk you make below instead. The caller ID must be a number on the same Bandwidth account as the realm. See Place calls from Bandwidth numbers under Other options.
Send calls to the agent
You need a Bandwidth Universal Platform account with SIP trunking, a number, and the right to create Voice Configuration Packages.
Copy Bandwidth's signaling IP address
In the Bandwidth App, open Account › Trunk Group Configurations. Copy the standard SIP (Orig/Term) address, not the TLS, SIP Auth, or Registrar one. If more than one standard SIP address is listed, copy each: the trunk needs a gateway for every one. For more information, see Bandwidth’s Vapi guide.
Add the SIP trunk in Vapi's dashboard
In Vapi’s dashboard, open Integrations, choose SIP Trunk under Phone Number Providers, then Configure New SIP Trunk. Under Gateway Configuration, set IP Address / Domain to the signaling IP, Port to 5060, and Netmask to 32. Turn on Allow inbound calls. If you copied more than one signaling IP, add a gateway for each. With one missing, calls work sometimes and fail other times.
The trunk’s Credential ID makes the address Bandwidth sends calls to: <credential id>.sip.vapi.ai.
Keep this one trunk for both directions. For calls out, you add a second gateway to it later. Bandwidth’s Vapi guide makes a second trunk for calls out; this page doesn’t.
Create the Voice Configuration Package
In the Bandwidth App, open Service Management › Voice Configuration and choose Create New (Bandwidth’s ElevenLabs guide calls it Add Package). Name it, set the route type to Route to Domain Name, and enter the trunk’s address from the step above. Bandwidth’s Vapi guide gives this menu path, and its create a package page makes the same package through the API.
Assign the numbers to the package
In the Bandwidth App, open each number, choose the package in the Voice configuration package drop-down, and choose Save. Confirm that inbound voice is active. For more information, see Bandwidth’s ElevenLabs guide.
Add each number in Vapi's dashboard
In Vapi’s dashboard, open Phone Numbers, choose Create Phone Number, then BYO SIP Trunk Number. Enter each number in full international format with a leading +, pick the trunk under SIP Trunk Credential, and add a label. For more information, see Vapi’s SIP trunking guide.
Number the agent sees: Bandwidth sends the dialed number with a leading +, as Bandwidth’s Vapi guide describes.
Check it: when Vapi for CX shows Call this number from your phone, call one of the numbers from your own phone. The check passes when your call reaches the agent. If nothing arrives, the most common cause is the signaling IP: Vapi refuses a call from an address that isn’t on the trunk’s gateway list, and Bandwidth then reports a 550 error.
Stop answering. In Vapi for CX, Stop answering on a number set up in Vapi’s dashboard takes the agent off the number. The number stays in Vapi’s dashboard with no agent on it, and nothing changes at Bandwidth.
Hand callers to your team
On a Bandwidth trunk, Vapi passes each handoff to Bandwidth (SIP’s own transfer message) rather than placing a new call, for both Transfer to a phone number and Transfer to a SIP address. Bandwidth decides how it places the call and which number shows to whoever answers. For how handoffs work, see Handing callers to people.
Bandwidth’s Vapi guide doesn’t cover transfers. Its ElevenLabs guide passes calls to an address written sip:+1…@bandwidth.com, where +1… is the number to ring, rather than to a plain number. The summary rides as a SIP header, so it doesn’t reach a phone number.
Limitations
- Calls out need SIP credentials, which Bandwidth support or sales may have to turn on. They can’t sign in by IP address alone: Vapi’s addresses are shared by every Vapi customer.
- Accounts not on the Universal Platform can’t connect until they move to it.
- If Bandwidth moves your trunk group, its signaling IP changes, and calls in stop until you edit the gateway in Vapi’s dashboard. A refused call leaves no record in Vapi, so Vapi for CX can only say that no call arrived.
- A Bandwidth number alone doesn’t allow Return the call to their system. See Handing callers to people.
- Bandwidth bills trunk usage by the minute, and Vapi bills its own minutes.
- The Build trial reaches only your verified mobile number, in the US and Canada, with five calls at once and 30 minutes a call.
Other options
Place calls from Bandwidth numbers
Calls out go through a realm gateway on the same trunk.
Get SIP credentials turned on
In the Bandwidth App, open Account › SIP Credentials. If adding a realm fails, ask Bandwidth support or sales to enable SIP credentials on the account. For more information, see Bandwidth’s realms and credentials page.
Add a realm and a SIP credential
Under SIP Credentials, choose Manage Realms, then + ADD, and name the realm. If the account has more than one trunk group, pick the one for this trunk, as Bandwidth’s ElevenLabs guide describes. Then add a SIP credential with a Username, Password, and the Realm. Bandwidth generates the realm’s host name.
Add the realm to the same trunk in Vapi's dashboard
In Vapi’s dashboard, open the trunk under Integrations › SIP Trunk. Add the realm’s host name as a second gateway with Allow outbound calls only and Port 5060. Under Authentication (Optional), enter the username and password. The username is bare, with no realm added to it.
Numbers go out in full international format. Bandwidth’s Vapi guide explains its errors: if a call out fails with a 500 error, the request carried no SIP credential, or the account isn’t enabled for SIP credentials. A 403, or a repeated 407, means the username, password, or realm host name doesn’t match.
Other ways to connect Bandwidth
- A Programmable Voice (BXML) application that sends the call to SIP. Bandwidth’s Transfer verb sends a call to a SIP URI. You build and host the application. Not self-serve.
- Forward the number to a Vapi number. A Voice Configuration Package can forward calls to a phone number. For more information, see Bandwidth’s Voice Configuration Packages article.