ripe-family-60459
09/19/2025, 10:21 PMtall-airline-16756
09/19/2025, 10:21 PMtall-airline-16756
09/19/2025, 10:22 PMplay_dialtone: true option in the CreateSIPParticipant request. This will start the audio track early and play a dial tone during call setup, which often helps with preserving that initial audio.
Also, it’s a good idea to double-check your Twilio trunk settings—especially the "Early Media" handling in the origination URL configuration. This setting controls whether audio is forwarded before the call is fully answered. Making sure your SIP trunk sends the right answer supervision signals (like 180 Ringing and 200 OK) can really make a difference in getting media to start on time.
Could you please let me know if you’ve enabled play_dialtone in your setup? And are you noticing this issue only on outbound calls, or does it happen with inbound Twilio SIP calls as well? I’m here to help you get this sorted out!
Sources: packages/sip--um-actually/src/setup-twilio.ts | Agents telephony integration | LiveKit Docs | OpenAI and LiveKit partner to turn Advanced Voice into an API | Make outbound calls | LiveKit Docs | pkg/sip/outbound.goripe-family-60459
09/19/2025, 10:28 PMtall-airline-16756
09/19/2025, 10:28 PMplay_dialtone option works! It’s not directly linked to the agent entrypoint itself, but it plays an important role in certain SIP operations—like when making outbound calls or transferring calls—by providing audible feedback, such as a dial tone, while the call is being set up. You can enable this option in the CreateSIPParticipant request or during call transfers using the transfer_sip_participant API.
In your self-hosted setup, using play_dialtone can really enhance the user experience by ensuring early media is played during SIP call setup. If you’re working on implementing an agent, including this option in your SIP operation logic—like for DTMF-triggered transfers—can give participants helpful real-time feedback.
Please feel free to reach out if you’d like me to walk you through any part of this or provide specific examples tailored to your setup. I’m here to help!
Sources: SIP APIs | LiveKit Docs | Make outbound calls | LiveKit Docs | livekit-agents/livekit/agents/job.py | livekit-protocol/livekit/protocol/sip.pyi | protobufs/rpc/sip.protoripe-family-60459
09/19/2025, 10:33 PMtall-airline-16756
09/19/2025, 10:33 PMripe-family-60459
09/19/2025, 10:44 PMtall-airline-16756
09/19/2025, 10:45 PM