Skip to main content
An agent places calls through your trunk when its telephony provider is SIP Trunk and the call’s caller ID is one of the trunk’s numbers. Bolna sends the call to your carrier’s gateway, and your carrier carries it to the person you are calling.

Before you begin

  • The trunk has at least one gateway and one number. See Connect your carrier.
  • Your carrier accepts calls from Bolna: it allowlists 15.252.21.46 and 13.206.230.198, or the trunk has the carrier credentials it issued.
  • The trunk is enabled. A disabled trunk places no calls.

Switch the agent to the trunk

1

Set the telephony provider

Open the agent and go to the Calling tab. Under Call Configuration, set Telephony Provider to SIP Trunk. The option appears once your account has a trunk. If your account also has a legacy SIP trunk, that one is listed as SIP Trunk (previous).
Agent Calling tab, Call Configuration card, with the Telephony Provider dropdown open and SIP Trunk selected

Telephony Provider set to SIP Trunk

2

Place a call

Open the agent’s outbound call dialog. The caller ID list reads Select a phone number; pick one of your trunk numbers. Enter the number to call and click Place call. A SIP Trunk agent always needs a trunk number as its caller ID, so the dialog does not offer Bolna’s shared number.
For a batch, choose the SIP Trunk agent; the caller ID list then shows only your trunk numbers.

How the call goes out

  1. Bolna queues the call. Each trunk has its own place in the queue, and a call leaves it only when the trunk has a free channel. When every channel is busy, calls wait instead of failing, and one busy trunk does not hold up calls on another.
  2. Bolna sends the INVITE to the trunk’s gateways in priority order. A gateway that times out, answers 408 or 478, or answers with a 5xx is skipped for the next one.
  3. The phone rings for up to 60 seconds. A busy line or no answer ends the call as busy or no-answer.
  4. Once answered, the agent talks until the call ends or reaches the agent’s maximum call duration.
What the carrier receives: The execution ID in X-CLIENT-CALL-ID lets you match your carrier’s records to Bolna’s Call History.

Using the API

Set the agent’s provider with the agent PATCH endpoint, then place calls with Make call. Always send from_phone_number: without it, Bolna uses your account’s default number, which is not on your trunk, and the call fails.
Response
telephony_provider is trunk for these trunks; sip-trunk is the legacy SIP trunk provider. from_phone_number matches a trunk number with or without the +. For batches, pass your trunk numbers in from_phone_numbers when you create the batch. Track the call with Get execution, or list the trunk’s recent outbound calls with List calls and direction=outbound.

When a call fails

A call that never connects is marked failed, with one of these errors on the execution. The trunk’s Activity tab shows the SIP code and cause for calls the carrier refused.

Next steps

SIP headers

Send your own headers on every outbound INVITE.

Call transfer

Hand a live call to a person through the trunk.