alert-notebook-4408
11/03/2025, 8:20 AMtall-airline-16756
11/03/2025, 8:20 AMtall-airline-16756
11/03/2025, 8:21 AMmax_call_duration parameter. This can be done through the Server SDK, gRPC API, or SIP trunk configuration. The maximum duration is capped at 24 hours, but you’re free to set any value below that limit.
• Regular WebRTC Sessions: While there isn’t a direct setting for maximum call duration here, you can manage room timeouts using related configurations like empty_timeout or departure_timeout.
If you’re working specifically with SIP integration, just let me know! I’d be glad to walk you through the details and support you further.
Sources: livekit-agents/livekit/agents/voice/agent_session.py | Quotas and limits | LiveKit docs | SIP APIs | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.ts | protobufs/rpc/io.protoalert-notebook-4408
11/03/2025, 8:23 AMtall-airline-16756
11/03/2025, 8:24 AMmax_call_duration parameter when you create a SIP participant. This way, your call will automatically end once it reaches the duration you’ve specified.
Here’s a quick example using the LiveKit Server SDK (Node.js):
await livekitService.createSIPParticipant({
fromNumber: '+1234567890',
to: '+0987654321',
roomName: 'my-room',
maxCallDuration: 3600, // 1 hour in seconds
});
This setup works smoothly with Twilio and doesn’t require any extra configuration on their side. If you have any questions or need a hand with anything else, just let me know—I’m here to help!
Sources: SIP APIs | LiveKit Docs | protobufs/rpc/io.proto | pkg/sip/participant.go | packages/livekit-server-sdk/src/SipClient.tsalert-notebook-4408
11/03/2025, 10:32 AMtall-airline-16756
11/03/2025, 10:32 AMWorkerOptions exactly matches the one in your dispatch rule configuration. Even small mismatches can cause silent calls.
• Authentication Issues: It’s a good idea to verify that your SIP trunk credentials are correctly set and match those provided by your SIP provider.
• Call Routing Misconfigurations: Confirm that your dispatch rules are set up properly to route calls to the right agent. Sometimes a small misconfiguration here can cause problems.
Also, taking a look at external logs from your SIP provider (like Twilio) alongside your LiveKit logs can often reveal issues that don’t show up internally. If you’d like, I’m here to help you work through any of these steps or answer any questions you have!
Sources: pkg/sip/server.go | SIP troubleshooting guide | LiveKit Docs | Create and configure a Plivo SIP trunk | LiveKit Docsalert-notebook-4408
11/03/2025, 10:38 AMtall-airline-16756
11/03/2025, 10:38 AMagent_name matches exactly between the WorkerOptions and the dispatch rule configuration. Sometimes a mismatch here can lead to those silent calls.
• Insufficient Agent Instances: Running multiple agent instances per agent_name can really help manage traffic spikes and prevent resource issues. Setting up auto-scaling and load balancing can add an extra layer of reliability.
• Trunk Authentication: Double-check your SIP trunk credentials and ensure they comply with any regional regulations. Using region pinning can be a helpful tool here if needed.
• Network and Audio Quality: Enabling noise and echo cancellation tools like Krisp can improve call clarity. Also, it’s a good idea to check for any network latency or packet loss between your agent server and LiveKit.
• SIP Endpoint Configuration: Make sure the SIP endpoint and transport settings align with your provider’s requirements to avoid any misconfigurations.
By looking into these areas, you should see a reduction in those blank calls. Please feel free to reach out if you’d like me to guide you through any specific step—I’m here to help!
Sources: SIP troubleshooting guide | LiveKit Docs | Agents telephony integration | LiveKit Docs | Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik...alert-notebook-4408
11/03/2025, 11:25 AMtall-airline-16756
11/03/2025, 11:26 AMalert-notebook-4408
11/03/2025, 11:27 AMsession.say() executes without errors but user hears no audio output
4. Session starts successfully, no LLM/TTS errors logged
Setup:
• SIP participant created via create_sip_participant
• AgentSession with BaseVoiceAgent using OpenAI LLM + Deepgram TTS/STT
• auto_subscribe=AutoSubscribe.AUDIO_ONLY
Question: Why is audio not transmitted despite successful session.say() calls and working transcription? Is there an audio pipeline connection issue between AgentSession and SIP participant?
Code structure: Call connects → session.start() → monitor_active_call() → session.say() [no audio heard]alert-notebook-4408
11/04/2025, 3:14 PM