- What: Automatically reroutes outbound calls through an alternate carrier when the primary route fails, is congested, or degrades
- How: Fully automatic for most countries. No configuration or code changes needed
- India exception: Indian regulations tie numbers to specific carriers, so failover works only on numbers that have a fallback number configured — enable High Availability (HA) to provision a backup number from a different carrier
- Coverage in India: Voice API calls and ZenTrunk domestic India trunk calls
- Visibility: Voice API hangup callbacks include
CarrierFailoverTriggered=truewhen a failover was attempted on the call - Cost: HA adds a second number rental at the standard India local number rate (billed monthly in addition to your primary number)
- Limitation: Applies to outbound calls only. Incoming calls are not covered by failover
How It Works
Plivo maintains multiple carrier routes for every destination. When you place an outbound call, Plivo monitors the call route in real time. If the primary carrier fails or degrades, Plivo reroutes the call through an alternate carrier instantly.
This is fully automatic — no configuration, no code changes, and no manual action required. Failover is transparent to both your application and your customer. India calls behave slightly differently — a retried call shows the fallback caller ID (see below).
India — Additional Setup Required
For most countries, Plivo handles carrier failover entirely behind the scenes. India is different. Indian telecom regulations tie phone numbers to specific carriers. Plivo cannot silently reroute calls through a different carrier’s number without explicit provisioning. To get failover coverage for India numbers, you need to set up High Availability (HA) numbers.What Are HA Numbers?
High Availability pairs your primary India number with a backup number from a different carrier. If the primary number or its carrier becomes unreachable, calls automatically reroute through the fallback number — no code changes needed in your application.- You enable HA on an India local number (new or existing).
- Plivo provisions a second number from a different carrier and adds it as an active rental on your account.
- Plivo monitors the primary number in real time. If a failure or congestion is detected, calls reroute through the fallback number automatically.
What Happens on a Retried Call
- Your customer sees the fallback caller ID, not the original
fromnumber, on the retried call. - Plivo generates one CDR and one hangup callback per call — the retry isn’t reported as a second call.
- Retried calls take slightly longer to connect or fail than first-attempt calls.
- On a retried ZenTrunk call, the CDR’s
from_numberrecords the fallback caller ID, not the number you originally sent.
When Plivo Retries a Call
Plivo retries a call only when the first attempt fails because of a carrier fault — not when the failure is a genuine call outcome.Track Failover on Your Hangup Callback
Voice API calls report failover through theCarrierFailoverTriggered parameter on the hangup callback (hangup_url). Plivo sends CarrierFailoverTriggered=true only when a failover was attempted on the call. The parameter is omitted otherwise — never sent as false — so existing integrations and the normal payload shape are unaffected. The Call Details API doesn’t return this field.
Example hangup callback (failover attempted)
from_number for the fallback caller ID.
Enable HA When Buying a New Number
- Go to Phone Numbers > Buy Number in the Plivo console.
- Search for an India local number.
- On the Details page, scroll to High Availability.
- Check Enable high availability backup number.
- Complete the purchase — Plivo provisions a fallback number and bills it automatically.
Enable HA on an Existing Number
- Go to Phone Numbers > Active Numbers in the Plivo console.
- Click the number you want to upgrade.
- Scroll to the High Availability section.
- Check Enable high availability backup number and click Save.
- The Fallback Number appears in your number details once provisioned.
Billing
Enabling HA rents a second number from a different carrier. This fallback number is added as a separate active rental on your Plivo account and billed at the standard monthly rate for India local numbers — in addition to your primary number. The fallback number is visible under Phone Numbers > Active Numbers alongside your other rentals.Frequently Asked Questions
Do I need to change my application code?
No. Carrier failover is automatic and transparent. Your application continues to use the same Plivo APIs and number configuration without any changes. For India HA numbers, failover is also automatic once you enable it — no code changes required.How can I see which fallback number is assigned to my India number?
Go to Phone Numbers > Active Numbers in the Plivo console and click on the primary number. The Fallback Number field shows the assigned backup number.Does carrier failover cover incoming calls?
Carrier failover applies to outbound calls. Incoming call behavior follows your standard number configuration.Do I need HA numbers outside India?
No. Plivo handles carrier failover automatically for all countries other than India. HA numbers are only needed for India due to regulatory requirements that tie numbers to specific carriers.Related
- India Calling Regulations — Regulatory requirements for voice calling in India
- India Number KYC — KYC and number rental process for India
- Phone Numbers — Overview of number types
- Account Phone Numbers — Manage your active numbers