sip-voice-call-control
Voice interface using Telnyx Call Control API. Answer phone calls with AI, function calling, and natural conversation. Use for hands-free assistant access, phone-based reminders, or voice-controlled tools. Requires Node.js and Telnyx API key.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- sip-voice-call-control
- metadata
- { "openclaw": { "emoji": "📞", "requires": { "env": [ "TELNYX_API_KEY" ], "bins": [ "node", "npm" ] }, "primaryEnv": "TELNYX_API_KEY" } }
- description
- Voice interface using Telnyx Call Control API. Answer phone calls with AI, function calling, and natural conversation. Use for hands-free assistant access, phone-based reminders, or voice-controlled tools. Requires Node.js and Telnyx API key.
03 SKILL.md 正文
SIP Voice Call Control
Voice interface for OpenClaw using Telnyx Call Control API. Call via SIP and have natural conversations with your AI assistant.
How It Works
Your Phone (SIP) → Telnyx Call Control → Webhooks → This Server → Commands back
↓ ↓
STT/TTS/Media LLM + Tool Execution
This is not WebRTC — it's server-side SIP call handling. Telnyx handles all audio; we just receive webhooks and send commands.
Setup
1. Install Dependencies
cd skills/sip-voice-call-control
npm install
2. Configure
cp .env.example .env
Edit .env:
TELNYX_API_KEY=KEY_your_api_key_here
3. Start Server
npm run start
Console shows:
🎙️ Assistant Voice Server ready on port 3000
📞 Dial: sip:openclaw@yourconnection.sip.telnyx.com
Agent Setup Flow
When setting up for a user, agents should:
1. Collect Configuration
Ask for:
-
Telnyx API Key (required)
- Get from: https://portal.telnyx.com/#/app/auth/v2
- Needs Voice API + Inference permissions
-
TTS Voice (optional)
Telnyx.NaturalHD.astra— Female, warm and clear (default, recommended)Telnyx.NaturalHD.atlas— Male, deep and authoritativePolly.Amy-Neural— British femalePolly.Brian-Neural— British malePolly.Joanna-Neural— American femalePolly.Matthew-Neural— American maleAzure.en-US-JennyNeural— American femaleAzure.en-GB-RyanNeural— British male- See
.env.examplefor full list
-
Voice Model (optional)
Qwen/Qwen3-235B-A22B— Best for function calling (default)meta-llama/Meta-Llama-3.1-8B-Instruct— Fastestmeta-llama/Llama-3.3-70B-Instruct— Balanced
Personalization (assistant name, user name, timezone) is pulled automatically from workspace files (IDENTITY.md, USER.md).
2. Write .env File
cat > .env << 'EOF'
TELNYX_API_KEY=<user_api_key>
VOICE_MODEL=Qwen/Qwen3-235B-A22B
TTS_VOICE=Telnyx.NaturalHD.astra
EOF
3. Start in Background (Persistent)
The server must run persistently to receive calls. Use nohup to keep it alive:
cd /path/to/sip-voice-call-control
nohup npm run start > sip-voice-call-control.log 2>&1 &
Or from an agent:
// Use nohup to keep process alive after session ends
exec({
command: "cd /path/to/sip-voice-call-control && nohup npm run start > sip-voice-call-control.log 2>&1 &",
background: true
})
Important: Without nohup, the process will die when the parent session ends. Always use nohup or a process manager for production.
To check if running:
ps aux | grep "tsx.*dev" | grep -v grep
To stop:
pkill -f "tsx.*dev.ts"
To view logs:
tail -f /path/to/sip-voice-call-control/sip-voice-call-control.log
4. Extract SIP Address
Poll the process logs and give the user the SIP dial-in:
📞 Dial: sip:openclaw@<connection>.sip.telnyx.com
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
TELNYX_API_KEY |
Yes | — | Telnyx API key |
VOICE_MODEL |
No | Qwen/Qwen3-235B-A22B |
Model for inference |
TTS_VOICE |
No | Polly.Amy-Neural |
Text-to-speech voice |
PORT |
No | 3000 |
Server port |
ENABLE_TUNNEL |
No | true |
Create Cloudflare tunnel |
WORKSPACE_DIR |
No | ~/clawd |
For memory search tool |
Available Tools
| Tool | Trigger Phrases | What It Does |
|---|---|---|
list_cron_jobs |
"what reminders", "my schedule", "cron jobs" | Lists scheduled tasks |
add_reminder |
"remind me", "set a reminder" | Creates new reminder |
remove_cron_job |
"delete", "cancel" + job name | Removes a scheduled task |
get_weather |
"weather", "temperature", "forecast" | Gets current weather |
search_memory |
"what have we been working on", "projects" | Searches workspace files |
Features
- Low-latency — 500ms-1.5s response time with
enable_thinking: false - Barge-in — Interrupt the assistant anytime by speaking
- Function calling — Native tool support with Qwen
- Auto-setup — Cloudflare tunnel and Call Control app created automatically
- Personalization — Reads
IDENTITY.mdandUSER.mdfor context
Troubleshooting
No response after speaking:
- Check Telnyx API key has Voice API + Inference permissions
- Verify webhook URL is reachable (tunnel must be active)
Slow responses (>3s):
- Ensure using
function-callingbranch (notmain) - Check model availability on your Telnyx account
Tool not executing:
- Ensure
openclawCLI is in PATH - Check
WORKSPACE_DIRis set correctly
Port already in use:
- Kill existing server:
pkill -f "tsx.*dev.ts" - Or change
PORTin .env
Resources
- Telnyx Call Control: https://developers.telnyx.com/docs/voice/call-control
- Telnyx Inference: https://developers.telnyx.com/docs/inference
- See ARCHITECTURE.md for technical details
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.