Skip to navigation

Plivo

Send Plivo numbers to an agent over a Zentrunk SIP trunk

Point a Plivo Zentrunk trunk at Vapi, set the trunk up in Vapi’s dashboard (Connect in Vapi), then pick the number in Vapi for CX.

  • Receive calls: Through a Zentrunk inbound trunk pointed at Vapi, as Plivo’s Vapi guide describes. Indian numbers can’t be used.
  • Transfer to a phone number: Offered. Plivo accepts a passed-on call only to an address on your own Plivo trunk.
  • Transfer to a SIP address: Offered. Plivo accepts a passed-on call only to an address on your own Plivo trunk.
  • Return the call to their system: Only when a contact center or phone system that takes calls back is linked to the line. See Handing callers to people.
  • Place calls: Through the outbound trunk, as Plivo’s Vapi guide describes. Plivo hangs up a call out whose caller ID isn’t a Plivo number (see Limitations).

Send calls to the agent

You need a Plivo account with Zentrunk and a voice-enabled number.

1

Create the Vapi URI

In the Plivo console, open Zentrunk (SIP) (Plivo’s own guide calls this menu SIP Trunking), then Inbound Trunks, and choose Create New Inbound Trunk. Next to Primary URI, choose Add New URI. Name it Vapi-Primary, enter the SIP URI sip.vapi.ai;transport=udp, and choose Create URI. For more information, see Plivo’s Vapi guide.

2

Create the inbound trunk

Back in the Create New Inbound Trunk form, set Primary URI to Vapi-Primary, name the trunk, and choose Create Trunk. For more information, see Plivo’s SIP trunking quickstart.

3

Attach the number to the trunk

Open Phone Numbers (in Plivo’s guide, Your Numbers), then the number. Set Application Type to Zentrunk, pick the inbound trunk, and choose Update Number.

4

Allow Vapi's IP addresses

Open Zentrunk (SIP) › Outbound Trunks › IP Access Control List and choose Create New IP Access Control List. Add 44.229.228.186/32 and 44.238.177.138/32. For more information, see Vapi’s SIP networking guide.

5

Create the outbound trunk and copy its domain

Under Outbound Trunks, choose Create New Outbound Trunk and select the IP Access Control List you just made. Copy the trunk’s Termination SIP Domain. It looks like <trunk id>.zt.plivo.com. Calls out go through this trunk, and the trunk in Vapi’s dashboard uses its domain.

6

Add the SIP trunk in Vapi's dashboard

In Vapi’s dashboard, open Integrations, choose SIP Trunk under Phone Number Providers, then Configure New SIP Trunk. Under Gateway Configuration, set IP Address / Domain to the termination domain and turn on Allow outbound calls only.

7

Add the number in Vapi's dashboard

In Vapi’s dashboard, open Phone Numbers, choose Create Phone Number, then BYO SIP Trunk Number. Enter the number, pick the trunk under SIP Trunk Credential, and add a label.

Add the number on this trunk. This page doesn’t use the separate inbound credential in Vapi’s Plivo SIP guide. For more information, see Vapi’s SIP trunking guide.

8

Pick the number in Vapi for CX

On the agent’s setup checklist, open Connect your phone line, choose Use a number already in Vapi, and pick the number.

Check it: when Vapi for CX shows Call this number from your phone, call the number from a mobile phone. The check passes when your call reaches the agent.

Stop answering. In Vapi for CX, Stop answering on a number set up in Vapi’s dashboard takes the agent off the number. The number stays in Vapi’s dashboard with no agent on it, and nothing changes at Plivo.

Hand callers to your team

On a Plivo trunk, Vapi passes each handoff to Plivo (SIP’s own transfer message) rather than placing a new call, for both Transfer to a phone number and Transfer to a SIP address. Plivo’s own page says its trunks accept a passed-on call only to an address on your own Plivo trunk. The summary rides as a SIP header, so it doesn’t reach a phone number. For how handoffs work, see Handing callers to people.

Limitations

  • Indian numbers can’t be used with Plivo on Vapi.
  • Calls out must show a Plivo number as the caller ID, or Plivo hangs up. Calls to a country turned off in Geo Permissions are blocked (all countries are on by default), and premium numbers are blocked.
  • A Plivo number alone doesn’t allow Return the call to their system. See Handing callers to people.
  • No audio other than G.711, no call recording on Zentrunk, and no fax (T.38).
  • Plivo bills Zentrunk minutes each way, and Vapi bills its own minutes. Plivo bills a passed-on call as two call records.
  • A trunk takes 1 new call a second by default.
  • Plivo adds a charge in a month with more than 20% zero-second calls, or more than 10% calls of 6 seconds or less.

Other options

  • A Plivo Voice API application that sends the call to SIP. Plivo’s Dial element connects a call to a SIP endpoint. You build and host the application. Not self-serve.
  • Forward the number to a Vapi number. A Plivo application whose Dial element dials the Vapi number.