Getting Media Timeout Error For calls in Europe Region

I have self-hosted LiveKit agents in Europe and the USA. I also have a custom FreePBX server that connects to a local trunking provider for a particular region. However, for the EU region, I often get media timeout errors and random disconnects during the conversation.

Example Call ID: SCL_C5jGXx7dUb8w

I have the same setup for the UK and Spain (calls initiate from the same infrastructure through the same PBX and same provider). Yet, in the UK, around 10-15% of calls get the media timeout error, but in Spain, this ratio is around 50-60%.

I’ve also tried doing some manual calls through the same setup to test whether the issue is with my PBX system, but I haven’t gotten any disconnects.

This sounds like an IP allow list or port blocking issue. Ensure it is allowed through your network.

The call you shared did not have a PCAP. Can you share a PCAP for a session that fails like this?

Also does the Asterisk have RTP keepalive turned on?