Overview
Voice Gateway infrastructure resiliency ensures uninterrupted voice experiences even when underlying services encounter failures, latency spikes, or regional outages. By configuring fallback and resilience settings, organizations can maintain call continuity, improve customer experience, and reduce service disruptions across voice interactions.
This article explains how to configure infrastructure resiliency for Voice Gateway in Kore.ai Platform.
The configuration supports automated failover for speech services, SIP routing continuity, and graceful handling of system-level errors.
Why Infrastructure Resiliency Matters
Voice AI systems rely on multiple interconnected components such as:
- SIP infrastructure
- Automatic Speech Recognition (ASR)
- Text-to-Speech (TTS)
- AI orchestration services
- Telephony providers
- Network connectivity
A disruption in any component can affect live customer calls. Infrastructure resiliency minimizes these risks by introducing fallback mechanisms and alternate routing strategies.
Common resiliency scenarios include:
- Primary ASR provider becomes unavailable
- TTS service latency increases
- SIP endpoint does not respond
- AI Agent response delays
- Regional outages affecting speech services
- Network interruptions during active calls
Supported Resiliency Features
Voice Gateway supports several resiliency and fallback capabilities:
| Capability | Description |
|---|---|
| Primary and Fallback ASR/TTS | Automatically switches to backup speech providers or regions |
| SIP Transfer Fallback | Transfers calls to alternate destinations during failures |
| Dynamic Redirect Routing | Uses SIP headers to route calls dynamically |
| System Error Handling | Ends or transfers calls when system errors occur |
| Delayed Call Answering | Prevents dead air by answering only when AI responses are ready |
| Experience Flow Error Handling | Provides graceful degradation during runtime failures |
Configure Infrastructure Resiliency
Step 1: Open Voice Gateway Configuration
Navigate to:
AI for Service → Flows & Channels → Channels → Voice Gateway
Open the Voice Gateway configuration associated with your deployment.
Step 2: Configure Primary and Fallback ASR/TTS
Voice Gateway supports fallback speech services to ensure continuity if the primary provider becomes unavailable.
Configure at the Global Level
Navigate to:
Configurations → System Setup → Language & Speech → Voice Preferences
Enable Show Advanced Settings.
Configure:
- Primary ASR Configuration
- Fallback ASR Configuration
- Primary TTS Configuration
- Fallback TTS Configuration
For best performance, Kore.ai recommends using the same vendor across different regions or labels for primary and fallback services.
Example
| Setting | Value |
|---|---|
| Primary ASR | Azure US |
| Fallback ASR | Azure EU |
| Primary TTS | Azure US |
| Fallback TTS | Azure EU |
Important Notes
- Primary and fallback configurations must be different.
- Both configurations must exist and be validated in Voice Gateway Speech Services.
- Verify credential status before enabling fallback configurations.
- Incorrect credentials may cause ASR/TTS failures.
Step 3: Configure System Error Handling
System Error Settings define how Voice Gateway behaves when the AI Agent cannot respond.
Navigate to:
Voice Gateway → Voice Call Properties → System Error Settings
You can configure one of the following actions:
Option 1: End the Call
Configure a custom message before the call disconnects.
Example:
“We are currently experiencing technical difficulties. Please try again later.”
Option 2: Transfer the Call
Transfer the call to another SIP destination or live support queue.
Configure:
- Redirect URL
- SIP Transfer Method
- Optional SIP Headers
Example Redirect URL:
sip:123.456.789:5060
Configure Dynamic SIP-Based Failover
Voice Gateway supports dynamic routing using SIP headers. This allows different lines of business (LOBs) or regions to redirect calls to different fallback destinations automatically.
Configure Redirect URL
Use the following format:
{{SIPHEADER.contact}}
Voice Gateway reads the SIP Contact header from the incoming SIP INVITE request and dynamically routes the call during failures. ([docs.kore.ai][1])
Example SIP INVITE Header
Contact: sip:+14085550100@example.com
During a system error:
- Voice Gateway reads the Contact header
- Resolves the redirect target
- Sends a SIP REFER request
- Transfers the call automatically
Configure Answer Call on Bot Response
This setting controls when a call is answered.
Navigate to:
App Settings → Advanced Settings → System Settings
Enable:
Answer Call on Bot Response
Behavior
| Setting | Behavior |
|---|---|
| Enabled | Call answers only after the AI response is ready |
| Disabled | Call answers immediately |
This helps:
- Prevent silent dead air
- Improve customer experience
- Enable SIP-aware failure handling
- Improve upstream system resiliency
Best Practices for High Availability
Use Regional Redundancy
Deploy primary and fallback speech services across different geographic regions to reduce regional outage impact.
Validate Credentials Regularly
Expired or invalid speech provider credentials can break failover logic. Periodically verify credential health.
Avoid Duplicate Primary and Fallback Configurations
Do not use identical providers and labels for both primary and fallback settings.
Test Failure Scenarios
Validate resiliency Behavior by simulating:
- ASR failures
- TTS outages
- SIP endpoint downtime
- Network interruptions
- AI response delays
Use SIP Headers for Dynamic Routing
Dynamic SIP routing simplifies multi-LOB and multi-region failover management.
Example Resiliency Architecture
A resilient Voice Gateway deployment may include:
- Primary Azure ASR in the US region
- Fallback Azure ASR in the EU region
- Primary TTS in US-East
- Backup SIP transfer queue
- Dynamic SIP routing using Contact headers
- Automated transfer to human agents during failures
This architecture helps maintain uninterrupted customer interactions during partial infrastructure outages.
Troubleshooting
| Issue | Possible Cause | Resolution |
|---|---|---|
| Fallback ASR not triggered | Invalid fallback configuration | Verify speech service credentials |
| Calls disconnect during errors | Missing Redirect URL | Configure SIP transfer destination |
| Dead air before AI response | Immediate call answering enabled | Enable “Answer Call on Bot Response” |
| SIP transfer fails | Incorrect SIP header mapping | Validate Redirect URL format |
| TTS playback errors | Voice configuration mismatch | Reconfigure and save voice settings |