Last updated
What is Plivo SIP trunking used for in a Bolna voice agent?
Plivo SIP trunking connects your Plivo numbers to a Bolna voice agent over Plivo Zentrunk, so the agent answers calls to those numbers and calls out from them while Plivo bills the minutes. It is different from the native Plivo integration, which connects your Plivo account to Bolna as a telephony provider. Plivo uses one trunk for inbound and another for outbound, so you create both in Plivo and connect them to one Bolna trunk.
How do I set up a Plivo SIP trunk with Bolna?
- In the Plivo Console, open SIP Trunking > Inbound Trunks and create a trunk with the SIP URI
trunk.bolna.ai:5060. Add;transport=tcpfor TCP if you want it. Do not usetransport=tls. - Open Phone Numbers > Your Numbers, pick your number, set Application Type to Zentrunk and set Trunk to the inbound trunk.
- Open SIP Trunking > Outbound Trunks and create a trunk. Add a credentials list, or an IP access control list with Bolna's IPs
15.252.21.46and13.206.230.198. Leave Secure Trunking off and copy the Termination SIP Domain, such asXXXXXXXXXXXX.zt.plivo.com. - In Bolna, under Deploy, open SIP Trunks, click Create trunk and pick Plivo. Paste the Termination SIP Domain into Gateway we dial.
- On the Carrier IPs step, keep every range the Plivo preset prefills, since Plivo can route a call through another region during an outage. Enter the credentials list username and password if you made one.
- Add your Plivo numbers in E.164 format and create the trunk. Assign an agent to each number for inbound calls, and set the agent's Telephony Provider to SIP Trunk for outbound calls.
Screens and field rules are in the Plivo SIP trunk setup guide in the Bolna docs.
Which Plivo SIP settings does Bolna use?
| Setting | Plivo Zentrunk with Bolna |
|---|---|
| Inbound trunk SIP URI | trunk.bolna.ai:5060 (UDP, or ;transport=tcp for TCP) |
| Outbound gateway | Your Termination SIP Domain, *.zt.plivo.com |
| Plivo recognises Bolna by | A credentials list, or an IP access control list with 15.252.21.46 and 13.206.230.198 |
| Secure Trunking | Off. Bolna's SIP trunks use UDP or TCP, not TLS |
| Plivo signalling IPs | Prefilled by the Plivo preset. Keep all of them |
| Codecs | PCMU and PCMA |
| Caller ID | Must be a Plivo number, or Plivo rejects the call with hangup code 4190 |
| Indian numbers | Plivo requires an account in its India data region |
What can you build with Plivo SIP trunking and Bolna?
Inbound lines on Plivo numbers. Link Plivo numbers to the inbound trunk and map each to a different Bolna agent, or set a default agent on the trunk.
Outbound campaigns on your Plivo minutes. Run single calls or batches from your Plivo numbers. Plivo bills the minutes and Bolna queues calls when every channel is busy.
Calls within India. With a Plivo account in the India data region, Indian numbers can call and be called through the trunk.
Match carrier records to Bolna. Every outbound INVITE carries the Bolna execution ID in X-CLIENT-CALL-ID, so you can match Plivo's logs to Bolna's Call History.
To connect your Plivo account as a telephony provider instead, see Plivo telephony for Bolna. For other carriers, see the generic SIP trunk page.