Skip to main content
Exotel is a cloud telephony provider for India and South-East Asia. It follows the same webhook → WebSocket pattern as Twilio: Exotel calls your server when a call arrives, Rapida responds with passthru XML that opens a WebSocket media stream.

Vault Credentials

In the Rapida dashboard go to Credentials → Create Credential, select provider type Exotel:
KeyDescription
api_keyExotel API key
api_secretExotel API secret
account_sidExotel Account SID

Setup

1

Set PUBLIC_ASSISTANT_HOST

PUBLIC_ASSISTANT_HOST is the public HTTPS hostname Exotel will use to reach your server — for webhooks and the WebSocket media stream.
Set it in docker/assistant-api/.assistant.env:
PUBLIC_ASSISTANT_HOST=your-server.com   # no https:// prefix
Also update connection.media in ui/src/configs/config.production.json:
{
  "connection": {
    "media": "https://your-server.com"
  }
}
2

Configure the ExoPhone app

In Exotel DashboardExoPhones, select your ExoPhone and assign it an App. Set the passthru URL to:
https://{PUBLIC_ASSISTANT_HOST}/v1/talk/exotel/call/{assistantId}?x-api-key={apiKey}
Replace {assistantId} with the numeric assistant ID from the Rapida dashboard.
3

Attach vault credential to the assistant

In the assistant’s Phone Deployment, select the Exotel vault credential.
4

Verify

curl https://{PUBLIC_ASSISTANT_HOST}/readiness/
# Expected: {"status":"ok"}

What Rapida Returns

When Exotel hits the webhook, Rapida returns passthru XML that connects a WebSocket at:
wss://{PUBLIC_ASSISTANT_HOST}/v1/talk/exotel/ctx/{contextId}?x-api-key={apiKey}

Audio Spec

PropertyValue
Encodingμ-law (PCMU) 8-bit
Sample rate8000 Hz
ChannelsMono

Twilio

Global PSTN alternative

Vonage

Higher audio quality (16kHz)

Telephony Overview

All providers and URL routing reference

Configuration

Full env var reference