What you’ll build
A two-way setup on a single Vobiz number:- Outbound - the Agora agent places campaign calls through your Vobiz outbound trunk.
- Inbound - calls to your Vobiz number route through an inbound trunk to the Agora agent.
Architecture
Prerequisites
- Agora account → Agora Console
- Vobiz account → Vobiz Console
- A Vobiz phone number → see Buy a phone number
Step 1: Create an Agora agent
In the Agora Console, open Agents and click Create Agent. Pick your project, name the agent, and choose a template - Blank, Appointment Reminder, NPS Survey, Payment Reminder, IVR, Customer service for e-commerce, or Sales / Lead qualification.
Part 1: Outbound calls
Step 2: Create a SIP credential in Vobiz
A Vobiz outbound trunk authenticates incoming traffic with a SIP credential, an IP access control list, or both. This guide uses a credential - it is the quickest route and stays valid if Agora changes its IPs. Go to Credentials List and click + Add Credential. Note the username and password - Vobiz stores the password hashed and does not display it again after creation. See Credentials List for the full walkthrough.Step 3: Create the outbound trunk
Go to Outbound Trunks and click + Create New Trunk. Attach the credential from Step 2 under Credentials.
<trunk-id>.sip.vobiz.ai. Copy it - this is the address Agora sends outbound calls to. Each trunk gets its own domain and it is never shared.
Step 4: Add the phone number in Agora
In the Agora Console, choose Add Phone Number and set Vendor to SIP Trunk.
Although Agora marks the authentication fields optional, this setup needs them - they are what the Vobiz trunk checks.
Step 5: Create a campaign
Outbound calls run as campaigns. Open Campaigns → Create New Campaign, then pick your agent, the number you just added, and upload a contacts CSV.
Part 2: Inbound calls
Step 6: Pick your regional origination URI
Agora terminates inbound calls on a regional SBC. Pick the one matching your number’s country code from Agora’s Set up SIP trunk page, which lists the current endpoints and outgoing IPs for every region:
5061. Check the Agora page for the authoritative list - endpoints and IPs change there first.
Step 7: Create the origination URI in Vobiz
Go to Origination URIs and create a URI pointing at the Agora SBC for your region.Step 8: Create the inbound trunk and link the number
Go to Inbound Trunks and create a trunk with the origination URI from Step 7 as its Primary URI. Then click Link Numbers, select your Vobiz number, and confirm.
Step 9: Assign the inbound agent in Agora
Back in Agora, edit the phone number and open Inbound Settings. Set Inbound agent to the agent from Step 1.
Test the integration
- Inbound - call your Vobiz number. The Agora agent should answer.
- Outbound - launch a campaign with a single contact and call your own phone.
Troubleshooting
Outbound calls are rejected with a 401 or 403
The trunk is not accepting the credentials. Confirm the username and password in Agora match the Vobiz credential exactly, and that the credential is attached to the outbound trunk and set to Active.Outbound calls do not reach Vobiz
Check the SIP Trunk Address is the trunk’s own SIP domain, in the form<trunk-id>.sip.vobiz.ai. Each trunk has a distinct domain.
The origination URI is rejected when saving
Remove thesip: prefix. The field takes domain or domain:port.
Inbound calls ring but never reach the agent
Confirm the number appears under Linked Numbers on the inbound trunk and the trunk Status is Enabled, then check the number has an Inbound agent assigned in Agora - a number left Unassigned accepts the call and drops it.Inbound calls connect but the audio is one-way or fails
Check the origination URI region matches your number’s country code. A number routed to the wrong regional SBC may signal correctly while media fails.Next steps
Outbound Trunks
Trunk settings, recording, and webhooks
Credentials List
Create and rotate SIP credentials
Inbound Trunks
Route inbound calls to your agent
IP Whitelisting
Vobiz SIP signaling and RTP ranges