busy-arm-79178
07/27/2025, 7:18 PMcrooked-agent-9740
07/28/2025, 12:45 AMsalmon-balloon-35737
07/28/2025, 9:55 AMbrainy-twilight-23481
07/28/2025, 1:23 PM<http://echo.sip.livekit.io:5060|echo.sip.livekit.io:5060>
fail with the same error.
What works: Agent registration, job dispatch, room creation
What fails: Any SIP INVITE request - zero responses from any destination
Since even LiveKit's echo server fails, this seems like a service-side routing issue rather than my trunk configuration.
Any solution to this?enough-nest-60267
07/28/2025, 2:16 PMdry-helmet-74553
07/28/2025, 3:06 PMAgentSession
, but I still haven't found the secret sauce.
When I use the real-time model, it skips the greeting and jumps straight into the conversation. But when I switch to regular TTS/STT, the LLM response latency increases — I get replies with a 3–5 second delay.
Does anyone know how to fix or optimize these issues?brave-printer-20093
07/28/2025, 4:48 PMorange-salesclerk-64602
07/29/2025, 5:51 AMwhite-parrot-89852
07/29/2025, 9:18 AM2025-07-29T08:47:20.641Z ERROR livekit supervisor/participant_supervisor.go:156 supervisor error on publication {"room": "test-room", "roomID": "RM_DxrCUxKkWBfi", "participant": "test-caller", "pID": "PA_KheovC9SjDyK", "remote": false, "trackID": "TR_AMzQL5c5k5EKLC", "error": "publish time out"}
<http://github.com/livekit/livekit-server/pkg/rtc/supervisor.(*ParticipantSupervisor).checkPublications|github.com/livekit/livekit-server/pkg/rtc/supervisor.(*ParticipantSupervisor).checkPublications>
/workspace/pkg/rtc/supervisor/participant_supervisor.go:156
<http://github.com/livekit/livekit-server/pkg/rtc/supervisor.(*ParticipantSupervisor).checkState|github.com/livekit/livekit-server/pkg/rtc/supervisor.(*ParticipantSupervisor).checkState>
/workspace/pkg/rtc/supervisor/participant_supervisor.go:145
log Livekit SIP
2025-07-29T08:46:48.774Z INFO sip v2@v2.9.2-0.20250606164215-22b67ed30bd9/localparticipant.go:148 published track {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "name": "test-caller", "source": "MICROPHONE", "trackID": "TR_AMzQL5c5k5EKLC"}
2025-07-29T08:46:48.774Z DEBUG sip sip/outbound.go:505 SDP offer {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "sdp": "v=0\r\no=- 9650335128064874553 9650335128064874553 IN IP4 54.255.225.247\r\ns=LiveKit\r\nc=IN IP4 54.255.225.247\r\nt=0 0\r\nm=audio 14078 RTP/AVP 9 0 8 101\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=ptime:20\r\na=sendrecv\r\n"}
2025-07-29T08:46:48.808Z DEBUG sip v2@v2.9.2-0.20250606164215-22b67ed30bd9/engine.go:429 successfully set publisher answer {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false}
2025-07-29T08:47:20.806Z DEBUG Client transaction destroyed {"nodeID": "NE_FDsNNkH6SS34", "caller": "transaction.Layer", "tx": "z9hG4bK.XcN0E4TsRFEFrZSv__INVITE"}
2025-07-29T08:47:20.806Z DEBUG Client transaction destroyed {"nodeID": "NE_FDsNNkH6SS34", "caller": "transaction.Layer", "tx": "z9hG4bK.XcN0E4TsRFEFrZSv__INVITE"}
2025-07-29T08:47:20.806Z INFO sip sip/outbound.go:535 SIP invite failed {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "error": "transaction failed to complete (0 intermediate responses)"}
2025-07-29T08:47:20.806Z INFO sip sip/outbound.go:308 SIP call failed {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "error": "transaction failed to complete (0 intermediate responses)"}
2025-07-29T08:47:20.806Z WARN sip sip/outbound.go:264 Closing outbound call with error {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "reason": "invite-failed"}
2025-07-29T08:47:20.815Z INFO sip sip/outbound.go:283 call statistics {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "stats": {"port":{"streams":0,"packets":0,"packets_ignored":0,"packets_input":0,"mux_packets":0,"mux_bytes":0,"audio_packets":0,"audio_bytes":0,"dtmf_packets":0,"dtmf_bytes":0},"room":{"input_packets":0,"input_bytes":0,"mixer_samples":0,"mixer_frames":0,"output_samples":1548480,"output_frames":1613},"mixer":{"tracks":0,"tracks_total":0,"restarts":0,"mixes":1613,"mixes_timed":607,"mixes_jump":1006,"mixes_zero":503,"input_samples":0,"input_frames":0,"mixed_samples":0,"mixed_frames":0,"output_samples":1548480,"output_frames":1613}}}
2025-07-29T08:47:20.831Z DEBUG sip v2@v2.9.2-0.20250606164215-22b67ed30bd9/engine.go:798 received leave request {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "action": "DISCONNECT"}
2025-07-29T08:47:20.831Z INFO sip v2@v2.9.2-0.20250606164215-22b67ed30bd9/engine.go:803 server initiated leave {"nodeID": "NE_FDsNNkH6SS34", "sipTrunk": "ST_TohipyYZmZDK", "callID": "SCL_UoWekBjQxuWS", "room": "test-room", "participant": "test-caller", "participantName": "", "fromHost": "", "fromUser": "02xxxxxxx", "toHost": "<http://xx.yalecom.com:5060|xx.yalecom.com:5060>", "toUser": "06xxxxxxxx", "jitterBuf": false, "reason": "CLIENT_INITIATED"}
wide-pager-36831
07/29/2025, 12:34 PMenough-nest-60267
07/29/2025, 2:54 PMproud-processor-44533
07/29/2025, 3:29 PMquiet-airplane-65783
07/29/2025, 4:08 PMmysterious-waitress-22500
07/29/2025, 8:38 PMbillions-book-73023
07/30/2025, 1:13 AMripe-farmer-27598
07/30/2025, 6:18 AMbitter-crowd-18639
07/30/2025, 10:43 AMbitter-crowd-18639
07/30/2025, 10:45 AMfaint-telephone-41876
07/30/2025, 10:47 AMsalmon-microphone-81072
07/30/2025, 1:15 PMdry-helmet-74553
07/30/2025, 5:10 PMplain-solstice-34504
07/31/2025, 12:44 AMripe-arm-36009
07/31/2025, 5:00 AMearly-pharmacist-32348
07/31/2025, 5:02 AM<sip:agent1@project.sip>.livekit.cloud
❗️*Issue:*
• Transfers using phone numbers work fine (sip_<phonenumber>
identity appears).
• Transfers using SIP URIs fail (LiveKit 408
, Twilio 503
) and target agents don’t show up in dashboard with correct SIP usernames.
• This happens whether the call is from Twilio or an internal agent.
• Docs are unclear about SIP identity registration, token usage, and agent setup for SIP routing.
❓ We need to confirm:
• Does LiveKit Cloud support SIP URI-based internal transfers like sip:username@...
?
• Should agents appear with SIP usernames when available?
• Any token creation, project settings, or dispatch rules required?
• Is there a code/config example for this flow?
• Can we get debug help or a support session to resolve this?
This SIP transfer functionality is central to our architecture — would appreciate any help or guidance!colossal-midnight-90278
07/31/2025, 11:06 AMancient-umbrella-90337
07/31/2025, 4:05 PMmysterious-doctor-96559
08/01/2025, 6:25 AMnutritious-receptionist-94656
08/01/2025, 10:55 AMhelpful-lizard-52428
08/02/2025, 10:35 AM# RealtimeModel with correct capabilities
capabilities = RealtimeCapabilities(
message_truncation=True,
turn_detection=True,
user_transcription=True,
auto_tool_reply_generation=True
)
llm = RealtimeModel(capabilities=capabilities)
# Session with audio options
session = AgentSession(
llm=llm,
room_input_options=RoomInputOptions(
close_on_disconnect=False,
auto_send_audio=True,
)
)
# Response generation
await session.generate_reply(
instructions="Greet the user in French..."
)
Questions for the community:
1. Why doesn't session.generate_reply() generate a voice response?
2. Are there specific logs to enable for debugging response generation?
3. Is the auto_send_audio=True configuration sufficient?
4. Do we need to configure anything else for the agent to speak automatically?
Current logs:
• Agent connects to the room
• Waits 3 seconds
• Attempts to generate a response
• But no voice response is heard
Tested:
• ✅ OpenAI API key functional (tested locally)
• ✅ SIP trunk configured and functional
• ✅ Agent receives calls
• ❌ Voice response generation doesn't work
Can you help us identify why the agent doesn't speak despite a configuration that seems correct?dazzling-printer-76295
08/02/2025, 8:57 PM