Skip to content

AI voice platform

Connect Vapi to the phone network with a SIP.cr trunk

Vapi adds your own SIP trunk through its API: a credential for the trunk, then a phone number on it. SIP.cr gives you the gateway, port, username and password that Vapi asks for, and a Costa Rica number to attach.

Trunk type
Username and password
Numbers
Costa Rica +506, 800 and 0800
Calls
Inbound and outbound
Minutes
Billed per second

Setup

Five steps to the first call with Vapi.

Vapi authenticates to SIP.cr with a username and password that SIP.cr generates for the trunk. Choosing Vapi in the new-trunk form sets this up for you.

  1. 1

    Open a SIP.cr account

    Sign up, send the company details and wait for our review. Add a payment method to start service.

  2. 2

    Create a trunk for Vapi

    In SIP trunks, choose New trunk and pick Vapi. Set how many simultaneous calls you need.

  3. 3

    Paste the values into Vapi

    The trunk page lists each value under the name Vapi uses for it. Copy them across.

    API: POST /credential (provider byo-sip-trunk), then POST /phone-number

  4. 4

    Buy a Costa Rica number

    In Numbers, pick a +506, 800 or 0800 number and point it at a trunk group that contains this trunk.

  5. 5

    Make a test call

    Call the number or place an outbound call from Vapi. The trunk page shows the last call and how it ended.

Field mapping

What goes where in Vapi

The left column uses the names in Vapi's own guide. The values come from your trunk page in SIP.cr.

Field in VapiValue from your SIP.cr trunk
gateways[].ipSIP server address
gateways[].portSIP port
outboundAuthenticationPlan.authUsernameTrunk username
outboundAuthenticationPlan.authPasswordTrunk password

Why bring your own trunk

What a SIP.cr trunk adds to Vapi

Vapi runs the assistant; SIP.cr carries the call to and from the Costa Rica phone network and keeps a record of each one.

  • 01

    A local number

    Costa Rica callers see a +506 or toll-free number instead of a foreign one, and can call it back.

  • 02

    Calls you can inspect

    Each call to and from Vapi has a record with its timeline, hangup cause, audio quality and cost.

  • 03

    One account for every agent

    Use several trunks for different agents or platforms, with numbers, channels and billing in one place.

Questions

Vapi and SIP.cr: questions

Does Vapi support an external SIP trunk?
Yes. Vapi documents how to connect your own SIP trunk; the link is on this page. SIP.cr gives you the values that guide asks for.
Can Vapi both receive and make calls through SIP.cr?
Yes. Inbound calls to your Costa Rica number go to Vapi, and outbound calls from Vapi leave with one of your numbers as caller ID.
How many simultaneous calls can I run?
You set the channels per trunk, from 1 to 1,000, and can change them from the portal or the API.
What if a call to Vapi fails?
Open the call in the SIP.cr portal. It shows the hangup cause in plain words with what to check, and the trunk page shows the last call and how it ended.

Field names come from Vapi's published guide and can change when Vapi updates its product. If a label differs, follow their guide and write to [email protected].

Other integrations

Reviewed, then live

Put your AI voice agent on the phone network.

Create the account today. Once our team approves it and you add a payment method, your first trunk and number take a few minutes.

Create account Talk to sales