8000 feat(ai_agents): add Plivo SIP telephony integration by navi- · Pull Request #2020 · TEN-framework/ten-framework · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@navi-
Copy link
@navi- navi- commented Jan 25, 2026

Summary

  • Add new voice assistant example with Plivo SIP integration for telephony
  • Implement bidirectional WebSocket audio streaming with μ-law 8kHz codec
  • Create RESTful API for outbound call management (create, list, status, terminate)
  • Mirror existing Twilio integration architecture for consistency

Changes

  • New example: agents/examples/voice-assistant-sip-plivo/
  • PlivoCallServer with FastAPI for webhooks and WebSocket handling
  • Full STT → LLM → TTS voice pipeline integration
  • Frontend UI for call management
  • Docker support and ngrok configuration for local development

Test plan

  • Configure Plivo credentials (Auth ID, Auth Token, phone number)
  • Set up ngrok or public URL for webhooks
  • Configure Deepgram, OpenAI, and ElevenLabs API keys
  • Test outbound call creation via API
  • Verify bidirectional audio streaming works
  • Test call termination

🤖 Generated with Claude Code

Add a new voice assistant example that integrates with Plivo for
telephony, mirroring the existing Twilio SIP integration. This enables
real-time voice AI applications using Plivo's WebSocket-based media
streaming.

Key components:
- PlivoCallServer for handling calls, webhooks, and WebSocket streaming
- Plivo XML generation using plivoxml.ResponseElement
- Bidirectional audio streaming with mu-law 8kHz codec
- RESTful API for outbound call management
- Full STT -> LLM -> TTS voice pipeline integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0