I’m using a Twilio SIP Trunk to do an outbound call, the call goes on for about 30 to 1:30 seconds. Then the call ends on it’s own. I see media-timeout error in Livekit when I check the call.
This is the Event payload shown in Livekit when the call ends;
media-timeout will be triggered if we don’t get any media (RTP) packets from the provider.
If I look at the PCAP, I see long stretches where media is only sent in one direction, so I assume that because we are not receiving packets, we trigger the timeout.
I see 3 calls in your account with this same behaviour but no other calls. During the call, are you able to hear and speak with the agent?
Yes, I’m able to hear and speak with the agent during the call until the call suddenly ends. In my account, during this call SCL_YUygT6NGYHpS, I was able to normally talk with the agent until it got disconnected. But for the other 2 calls, the call ended after the agent’s initial reply.
@darryncampbell I started seeing this issue today. How can I resolve this?
There’s something strange with the alignment of those audio waveforms isn’t there, but looking at the PCAP, I see the last packet we received from Twilio was 09:34:31 (UTC), then the call ended with a media timeout at 09:34:57 because we hadn’t recevied any data. Maybe compare the PCAP from LiveKit with the PCAP from Twilio to see if they align