1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Telnyx SIP Trunk Configuration
#
# This example demonstrates configuring active-call to work with
# Telnyx SIP trunking for global voice connectivity.
#
# Key Telnyx benefits:
# - Global SIP trunking with local presence in 140+ countries
# - IP-based authentication or SIP registration
# - Low-latency media routing via global edge network
# - TeXML (TwiML-compatible) for programmable voice
# - 53 AI models via OpenAI-compatible API
#
# Setup:
# 1. Create a Telnyx account at https://telnyx.com
# 2. Create a SIP connection in the Portal
# 3. Configure your IP for authentication or set up SIP credentials
# 4. Update the settings below with your connection details
#
# Documentation: https://developers.telnyx.com/docs/voice
= "0.0.0.0"
= "0.0.0.0:8080"
= 5060
# Your server's public IP (required for SIP)
= "YOUR_SERVER_PUBLIC_IP"
# Media cache for TTS audio
= "./config/mediacache"
# Recording settings
[]
= true
= true
[]
= "local"
= "./config/cdr"
# SIP Registration with Telnyx
# Telnyx supports both IP-based auth and SIP registration
# For IP-based auth: add your server IP to your Telnyx SIP Connection
# For SIP registration: use the credentials below
[[]]
# Telnyx SIP domain
= "sip.telnyx.com:5060"
# Your Telnyx SIP username (from Portal)
= "YOUR_SIP_USERNAME"
= false
[]
= "YOUR_SIP_USERNAME"
# Your Telnyx SIP password (from Portal)
= "YOUR_SIP_PASSWORD"
# Handler for incoming calls
[]
= "playbook"
= "telnyx_default.md"
# Route calls based on Telnyx phone numbers
# [[handler.rules]]
# callee = "^sip:\\+1\\d{10}@.*"
# playbook = "us_support.md"
# [[handler.rules]]
# callee = "^sip:\\+44\\d+@.*"
# playbook = "uk_support.md"
# ICE servers for WebRTC (optional)
# [[ice_servers]]
# urls = ["stun:stun.telnyx.com:3478"]