Telnyx Integration Guide for Active-Call
February 13, 2026 ยท View on GitHub
This guide explains how to configure active-call to work with Telnyx SIP trunking and AI services.
Why Telnyx?
Telnyx provides a complete voice and AI platform that integrates seamlessly with active-call:
- Global SIP Trunking: Local presence in 140+ countries with carrier-grade reliability
- Flexible Authentication: IP-based authentication or SIP registration
- Low-Latency Media: Global edge network routes media optimally
- TeXML Support: TwiML-compatible programmable voice markup
- 53+ AI Models: OpenAI-compatible API for LLM, ASR, and TTS
- Unified Billing: Single platform for voice and AI
Quick Start
1. Create a Telnyx Account
Sign up at telnyx.com and verify your account.
2. Create a SIP Connection
- Navigate to Voice > SIP Connections in the Portal
- Click Create SIP Connection
- Choose your authentication method:
- IP-based: Add your server's public IP
- SIP Registration: Note the username and password
3. Get Your API Key
- Go to API Keys in the Portal
- Create a new key with appropriate permissions
- Save the key securely
4. Configure Active-Call
# Copy the example configuration
cp config/telnyx.example.toml config.toml
# Edit with your settings
nano config.toml
# Set your API key
export TELNYX_API_KEY="your-api-key-here"
5. Run Active-Call
# Start with Telnyx configuration
./active-call --conf config.toml
SIP Configuration
IP-Based Authentication
For IP-based authentication, Telnyx verifies connections by source IP:
# In config.toml
external_ip = "YOUR_SERVER_PUBLIC_IP"
# No SIP registration needed
# Just add your server IP to your Telnyx SIP Connection in the Portal
SIP Registration
For SIP registration, configure your credentials:
[[register_users]]
server = "sip.telnyx.com:5060"
username = "YOUR_SIP_USERNAME"
disabled = false
[register_users.credential]
username = "YOUR_SIP_USERNAME"
password = "YOUR_SIP_PASSWORD"
Telnyx SIP Domain
The primary SIP domain is sip.telnyx.com. For specific regions, Telnyx provides regional endpoints:
- US East:
sip.us-east.telnyx.com - US West:
sip.us-west.telnyx.com - EU West:
sip.eu-west.telnyx.com - Asia Pacific:
sip.ap-southeast.telnyx.com
AI Services Configuration
Active-call can use Telnyx AI APIs for ASR, LLM, and TTS:
Playbook Configuration
---
asr:
provider: "openai"
baseUrl: "https://api.telnyx.com/v2/ai"
apiKey: "${TELNYX_API_KEY}"
model: "whisper-1"
language: "en"
tts:
provider: "openai"
baseUrl: "https://api.telnyx.com/v2/ai"
apiKey: "${TELNYX_API_KEY}"
model: "tts-1"
voice: "alloy"
llm:
provider: "openai"
baseUrl: "https://api.telnyx.com/v2/ai"
apiKey: "${TELNYX_API_KEY}"
model: "gpt-4o-mini"
---
Available AI Models
Speech Recognition:
whisper-1(OpenAI Whisper)
Text-to-Speech:
tts-1(optimized for speed)tts-1-hd(higher quality)- Voices:
alloy,echo,fable,onyx,nova,shimmer
Language Models:
gpt-4o,gpt-4o-miniclaude-3-5-sonnetllama-3.1-70b-instruct,llama-3.1-8b-instructmistral-large,mistral-small- 53+ models available
See the Telnyx AI documentation for the complete list.
Making Outbound Calls
To make outbound calls through Telnyx:
# Using CLI
./active-call --call "sip:+18005551234@sip.telnyx.com" --handler greeting.md
# Using Playbook with refer
<refer to="sip:+18005551234@sip.telnyx.com" />
WebRTC Integration
Telnyx provides a WebRTC SDK for browser-based voice:
- Create a Telnyx Call Control Application in the Portal
- Use the WebRTC SDK to connect browsers
- Bridge WebRTC calls to active-call via SIP
See Telnyx WebRTC documentation for details.
TeXML Support
Telnyx supports TeXML (TwiML-compatible markup) for programmable voice:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Hello from Telnyx!</Say>
<Dial>sip:agent@your-server.com</Dial>
</Response>
Use TeXML for call flows that don't require real-time AI interaction.
Troubleshooting
SIP Registration Fails
- Verify your SIP credentials in the Telnyx Portal
- Check that
external_ipis correctly configured - Ensure port 5060 (or your configured port) is accessible from the internet
No Audio on Calls
- Verify RTP ports are open:
rtp_start_porttortp_end_port - Check
external_ipmatches your public IP - Ensure your firewall allows UDP traffic for RTP
AI API Errors
- Verify
TELNYX_API_KEYenvironment variable is set - Check API key permissions in the Portal
- Confirm the model name is valid
High Latency
- Use regional SIP endpoints closer to your server
- Check network path to Telnyx edge nodes
- Consider using Telnyx AI APIs for lower-latency inference
Additional Resources
- Telnyx Voice Documentation
- Telnyx AI Documentation
- Telnyx API Reference
- Telnyx Discord Community
- Active-Call Documentation
License
This integration guide is provided under the same license as active-call.