Skip to main content
Your AI agent or PBX places an outbound call through Plivo, then sends REFER mid-call to hand off to a human agent. Plivo bridges the caller to the transfer target and disconnects your endpoint. No re-dial, no dropped call.
Use this guide when your endpoint placed the outbound call and wants to transfer it to another destination. For inbound call transfers, see SIP REFER — Inbound Calls.

Prerequisites


How it works


Step-by-step guide

Step 1: Set up your outbound trunk

  1. Go to cx.plivo.com/sip-trunkingOutbound Trunks
  2. Click Create New Outbound Trunk, create a credentials list, and save
  3. Copy the Termination SIP Domain — for example, XXXXXXXXXXXX.zt.plivo.com

Step 2: Place the outbound call

Your endpoint dials the customer via your SIP trunk domain:

Step 3: Send the REFER

When ready to hand off, send a REFER with the transfer target in the Refer-To header. Refer-To header format:
Use your SIP trunk domain in the Refer-To header. Transfers to other domains or arbitrary SIP URIs are blocked.
Example REFER message:

Step 4: Handle NOTIFY messages

After 202 Accepted, Plivo sends NOTIFY messages to report transfer progress. Your endpoint must respond to each NOTIFY with 200 OK.
Do not send BYE before receiving NOTIFY 200 OK. Sending BYE early drops the caller before the transfer completes.

Step 5: Call continues between customer and transfer target

Plivo bridges the caller to the transfer target and sends your endpoint a BYE.

What callers experience

  • During the transfer: The caller hears ring-back from the transfer target (180 Ringing) until the target answers.
  • If the transfer fails: The caller remains on your leg. You can retry with a different number or continue the conversation.
  • Music on hold: To play hold music while the transfer leg is establishing, play audio from your endpoint before sending REFER.

Response codes


Troubleshooting