Switch a Bolna agent to the SIP Trunk telephony provider and place calls, one at a time or in batches, from your own trunk numbers through your carrier.
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.
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).
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.
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.
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.
The phone rings for up to 60 seconds. A busy line or no answer ends the call as busy or no-answer.
Once answered, the agent talks until the call ends or reaches the agent’s maximum call duration.
What the carrier receives:
Value
Caller ID
The trunk number, in E.164 with the +
Number called
Digits only, or + and digits when Dial with leading plus is on for the trunk
Transport
The trunk’s transport, UDP or TCP, from 15.252.21.46
Codecs
The trunk’s codecs, PCMU, PCMA or both
Authentication
The trunk’s carrier credentials, sent when the carrier challenges with 401 or 407
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.
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.
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.
Error
Cause
Calling from_number is not on an outbound-enabled trunk.
The caller ID is not one of this account’s trunk numbers, or its trunk is disabled.
Trunk has no gateway to dial through.
Add a gateway on the trunk’s Connection tab.
gateway did not resolve to a dialable address
The gateway’s DNS name did not resolve to a public IPv4 address.