No input and output audio in SIP session
# ask-ai
m
No input and output audio in SIP session
t
Thanks for reaching out, Rajadurai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you with the SIP session issue! To get a clearer picture, could you share a bit more information? • Are you working with a particular SIP provider or using a specific integration? • What troubleshooting steps have you tried so far? • Do you have any error messages or logs that we could take a look at? • Is this happening with all SIP sessions or just certain ones? Knowing these details will really help us get to the bottom of this and find the best solution for you.
m
2025-09-15 130636,380 - DEBUG livekit.agents - input stream attached {"participant": null, "source": "SOURCE_UNKNOWN", "accepted_sources": ["SOURCE_MICROPHONE"], "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130636,392 - INFO Gvoice-agent - Starting STT Node {"pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130636,400 - INFO Gvoice-agent - Starting TTS Node {"pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130641,425 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130644,197 - DEBUG livekit.agents - using audio io:
RoomIO
->
AgentSession
->
TranscriptSynchronizer
->
RoomIO
{"pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130644,197 - DEBUG livekit.agents - using transcript io:
AgentSession
->
TranscriptSynchronizer
->
RoomIO
{"pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130644,198 - DEBUG livekit.agents - start reading stream {"participant": "sip_2001", "source": "SOURCE_MICROPHONE", "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130645,675 - INFO livekit.agents - received job request {"job_id": "AJ_6qYvyRQaEcUK", "dispatch_id": "", "room_name": "call-_2001_gvTyz3Bm9GH5", "agent_name": "gvoice-agent-test", "resuming": false} 2025-09-15 130645,741 - INFO livekit.agents - initializing process {"pid": 54933} 2025-09-15 130645,759 - INFO livekit.agents - process initialized {"pid": 54933, "elapsed_time": 0.02} 2025-09-15 130645,759 - DEBUG asyncio - Using selector: EpollSelector {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,856 - INFO models.factory - Creating LLM model {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,936 - DEBUG models.factory - LLM model created: <livekit.plugins.openai.llm.LLM object at 0x75c0906e0ad0> {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,936 - INFO models.factory - Creating STT model with languages: ['ta-IN', 'en-IN'] {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,937 - DEBUG models.factory - STT model created: <livekit.plugins.azure.stt.STT object at 0x75c07dd23ce0> {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,937 - INFO models.factory - Creating TTS model {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,937 - DEBUG models.factory - TTS model created: <livekit.plugins.azure.tts.TTS object at 0x75c0906e0ce0> {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,944 - DEBUG livekit.agents - input stream attached {"participant": null, "source": "SOURCE_UNKNOWN", "accepted_sources": ["SOURCE_MICROPHONE"], "pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,958 - INFO Gvoice-agent - Starting STT Node {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130645,969 - INFO Gvoice-agent - Starting TTS Node {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130647,392 - DEBUG livekit.agents - using audio io:
RoomIO
->
AgentSession
->
TranscriptSynchronizer
->
RoomIO
{"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130647,392 - DEBUG livekit.agents - using transcript io:
AgentSession
->
TranscriptSynchronizer
->
RoomIO
{"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130647,393 - DEBUG livekit.agents - start reading stream {"participant": "sip_2001", "source": "SOURCE_MICROPHONE", "pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130648,169 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} 2025-09-15 130715,343 - INFO livekit.agents - closing agent session due to participant disconnect (disable via
RoomInputOptions.close_on_disconnect=False
) {"participant": "sip_2001", "reason": "CLIENT_INITIATED", "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130715,347 - DEBUG livekit.agents - input stream detached {"participant": "sip_2001", "source": "SOURCE_UNKNOWN", "accepted_sources": ["SOURCE_MICROPHONE"], "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130715,348 - DEBUG livekit.agents - stream closed {"participant": "sip_2001", "source": "SOURCE_MICROPHONE", "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130716,671 - DEBUG livekit.agents - session closed {"reason": "participant_disconnected", "error": null, "pid": 54815, "job_id": "AJ_z5whkp45QXkm"} 2025-09-15 130718,061 - INFO livekit.agents - closing agent session due to participant disconnect (disable via
RoomInputOptions.close_on_disconnect=False
) {"participant": "sip_2001", "reason": "CLIENT_INITIATED", "pid": 54933, "job_id": "AJ_6qYvyRQaEcUK"} here is the log
t
Thanks so much for sharing the logs! To help you better, could you please clarify a few things for me? • Which SIP provider or integration are you using? • Are there any special configurations or customizations applied to your SIP session? • Is this issue happening with all SIP sessions or just certain ones? • Have you had a chance to check the audio input/output devices and their settings? Getting these details will really help us get to the root of the problem together. Looking forward to your reply!
m
I am using Asterisj audio codec is "PCMU/8000"
t
Let's work together to troubleshoot the no audio issue you're experiencing in your SIP session with Asterisk using the PCMU/8000 codec. Here are some steps that might help: 1. Verify Codec Compatibility: Please check that the Asterisk SDP answer is selecting PCMU/8000 (payload type 0) and that the RTP port information is being exchanged correctly. 2. Analyze RTP Streams: If you can, try using a tool like Wireshark to capture the RTP traffic. Look for RTP packets between the LiveKit server and Asterisk, and see if packets are flowing both ways. You can decode the RTP payload as G.711 μ-law to check if audio is actually present. 3. Test End-to-End Audio: If possible, try replicating the call flow with a known-good endpoint. This can help us understand if the issue might be related to the environment. 4. Test Alternative Codecs: It might be helpful to try another codec, like G722, to see if the problem is specific to the codec or something with the media path. 5. Check Network Configuration: Double-check that your firewalls and NAT settings allow bidirectional UDP traffic on the RTP ports (usually in the 10000+ range). Please feel free to reach out if you want to go over any of these steps together or if you run into any specific issues while testing. I'm here to help! Sources: pkg/sip/media_port_test.go | SIP troubleshooting guide | LiveKit Docs | g711/ulaw.go