Skip to main content
Vapi API integration with Vobiz SIP trunking This guide shows how to integrate Vapi with Vobiz programmatically to enable outbound calling and inbound calling. Your AI assistants can call any phone number, and inbound calls to your Vobiz number can be routed to a Vapi assistant.
Prefer the dashboard? Check out the dashboard setup guide for a visual step-by-step walkthrough.

Prerequisites

Part 1: Vobiz setup

Create a SIP trunk
Create a SIP trunk in Vobiz to handle voice traffic. See the SIP trunks documentation. Save these values from the response:
  • sip_domain (for example, 5f3a607b.sip.vobiz.ai)
  • username
  • password
You’ll need them for Vapi configuration.
Get a phone number
Purchase a phone number for outbound caller ID or inbound calls. See the phone numbers documentation.

Part 2: Vapi setup

Get your Vapi private key
  1. Log in to the Vapi Dashboard.
  2. Click your profile icon (top right) and go to Settings → API Keys.
  3. Click Create new key and copy the key.
Save this key securely - you’ll use it in all API requests.
Get your assistant ID
  1. In the Vapi Dashboard, go to Assistants.
  2. Select your assistant (or create one) and copy the Assistant ID.
Or list assistants via the API:

Part 3: Connect Vobiz to Vapi (outbound)

Step 1: Create the SIP credential in Vapi
Register your Vobiz SIP trunk with Vapi for outbound calling.
Replace:
  • bfab10fb.sip.vobiz.ai → your Vobiz SIP domain
  • Vapi_user → your Vobiz username
  • Password@123 → your Vobiz password
Save the id - this is your credential ID.
Step 2: Register the phone number
Associate your phone number with the SIP credential for caller ID.
Save the id - this is your phone number ID.
Step 3: Make an outbound call
Call initiated. The phone will ring, and when answered, your AI assistant will speak.

Verification

Check call status
View call logs in Vapi DashboardCalls, or via API:
Test call flow
  1. Run Step 3 to initiate a call.
  2. Wait for the destination phone to ring.
  3. Answer the call.
  4. The AI assistant will greet and speak.
  5. Check the call transcript in the Vapi Dashboard.

Inbound calls

Route calls placed to your Vobiz number directly to your Vapi AI assistant using the API.
Step 1: Create an inbound SIP credential in Vapi
Create a SIP trunk credential configured for inbound only - using the Vobiz gateway IPs instead of a SIP domain. Vobiz sends inbound SIP from any of its signaling IPs, so add a gateway for every Vobiz SIP signaling IP; get the current list from IP whitelisting → SIP signaling.
RTP media firewall update: If your network filters RTP traffic for Vapi calls, allow inbound and outbound UDP traffic on ports 5000–65535 from the complete RTP media IP list, including these new ranges:
  • 18.96.230.96/28
  • 18.96.230.112/28
These ranges carry audio. Do not include them in the Vapi gateways array; that array uses SIP signaling IPs only.
Save the id - this is your inbound credential ID (also called Trunk ID).
Want both inbound and outbound on the same trunk? Add a second gateway entry for outbound with your Vobiz SIP domain and credentials:
Step 2: Get the trunk ID
If you didn’t save the ID from Step 1, retrieve it by listing all credentials:
Find the entry with gateway IP 13.233.44.61 and outboundEnabled: false. The id field is your trunk ID.
Step 3: Configure the inbound trunk in Vobiz
Create an inbound trunk in the Vobiz Console that routes calls to Vapi:
  1. Go to Vobiz ConsoleSIP Trunks → Inbound Trunk.
  2. Click Create New Trunk.
  3. Set Name and Transport to UDP.
  4. Set Primary URI to <VAPI_TRUNK_ID>.sip.vapi.ai - for example, 46deea29-645d-44a3-bf42-7c6ec2d4b65c.sip.vapi.ai.
  5. Link your Vobiz phone number to this trunk.
  6. Click Save.
Or use the Vobiz API to create the inbound trunk programmatically - see the SIP trunks documentation.
Step 4: Register the inbound phone number in Vapi
Register your Vobiz number with the inbound credential and assign your assistant:
Replace:
  • +918071387376 → your Vobiz phone number
  • 46deea29-... → your inbound credential ID from Step 1
  • YOUR_ASSISTANT_ID → your Vapi assistant ID
Inbound setup complete! Dial your Vobiz number - the call will route to your Vapi AI assistant automatically.

Troubleshooting

”Unauthorized” / “Invalid API key”
Vapi private key is incorrect.
  • Verify you copied the entire key.
  • Generate a new key at Vapi DashboardSettings → API Keys.
”Couldn’t get assistant”
Wrong assistant ID or it doesn’t exist.
  • Run curl "https://api.vapi.ai/assistant" -H "Authorization: Bearer YOUR_KEY" and use the correct id.
  • Don’t confuse credential ID with assistant ID.
”SIP authentication failed”
Vobiz credentials are incorrect.
  • Verify SIP domain, username, password in Vobiz Console.
  • Use the exact sip_domain (for example, bfab10fb.sip.vobiz.ai), not a generic sip.vobiz.ai.
Call connects but silent
Assistant configuration issue.
  • Verify the assistant has a “First Message” configured.
  • Check the assistant has a voice provider set up.
  • View call logs in Vapi DashboardCalls.
Call doesn’t connect
  • Use E.164 format: +919148223344.
  • Verify your Vobiz trunk is active in Vobiz Console.

Quick reference

Required credentials
API endpoints
All requests require Authorization: Bearer YOUR_VAPI_PRIVATE_KEY.
Common errors

Resources

Vobiz Vapi