Overview
ExotelFrameSerializer enables integration with Exotel’s WebSocket media streaming protocol, allowing your Pipecat application to handle phone calls via Exotel’s voice services with bidirectional audio conversion and DTMF event handling for Indian telephony infrastructure.
Exotel Serializer API Reference
Pipecat’s API methods for Exotel WebSocket integration
Example Implementation
Complete telephony examples with Exotel
Exotel Documentation
Official Exotel developer documentation
Exotel Console
Manage phone numbers and streaming configuration
Installation
TheExotelFrameSerializer does not require any additional dependencies beyond the core Pipecat library:
Prerequisites
Exotel Account Setup
Before using ExotelFrameSerializer, you need:- Exotel Account: Sign up at Exotel Console
- Phone Number: Purchase an Exotel phone number with voice capabilities
- Media Streaming: Configure your phone number for WebSocket streaming
- Webhook Configuration: Set up webhook endpoints for call handling
Required Configuration
- Stream ID: Provided by Exotel during WebSocket connection
- Call SID: Associated Exotel Call SID (optional)
Key Features
- Bidirectional Audio: Convert between Pipecat and Exotel audio formats
- DTMF Handling: Process touch-tone events from callers
- Indian Telephony: Optimized for Indian voice infrastructure
- WebSocket Streaming: Real-time audio streaming via WebSocket protocol
Configuration
The Exotel Media Stream SID.
The associated Exotel Call SID (optional).
Configuration parameters for audio settings. See InputParams below.
InputParams
| Parameter | Type | Default | Description |
|---|---|---|---|
exotel_sample_rate | int | 8000 | Sample rate used by Exotel (Hz). |
sample_rate | int | None | Optional override for pipeline input sample rate. When None, uses the pipeline’s configured rate. |
ignore_rtvi_messages | bool | True | Whether to ignore RTVI protocol messages during serialization. |
Usage
Basic Setup
Notes
- Linear PCM audio: Exotel uses raw 16-bit linear PCM audio, not mu-law encoding. The serializer handles resampling between Exotel’s sample rate and the pipeline rate.
- No auto hang-up: Unlike Twilio and Plivo, the Exotel serializer does not include automatic call termination.
- DTMF support: Touch-tone digit events from callers are converted to
InputDTMFFrameobjects.