I am having trouble sending calls from FreePBX to ...
# ask-ai
a
I am having trouble sending calls from FreePBX to Livekitcloud. I am using a GSM (TG400) and FreePBX. I am getting a "media timeout" error on livekit call logs. how can I make this work?
t
Thanks for reaching out, Abdul. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The "media timeout" error in LiveKit typically occurs when no media (RTP packets) is received within the configured timeout period. Here are some steps to troubleshoot and resolve this issue: • Check Media Timeout Configuration: LiveKit has configurable media timeout settings. You can adjust these in your LiveKit SIP service configuration file. For example: `media_timeout_initial: 45s # Increase initial timeout media_timeout: 20s # Increase subsequent timeout`Ensure these values are set appropriately for your setup. • Verify RTP Packet Flow: The system monitors incoming RTP packets. Ensure that RTP packets are being sent from your FreePBX and GSM TG400 to LiveKit. Use network monitoring tools to confirm packet flow. • Firewall and Network Configuration: Media connectivity issues are often caused by firewalls blocking or filtering UDP traffic. Verify that the necessary ports for RTP are open and properly forwarded in your network configuration. • Inspect FreePBX and GSM TG400 Settings: Ensure that the SIP and RTP settings in FreePBX and GSM TG400 are correctly configured to communicate with LiveKit. Double-check codecs, NAT settings, and any other relevant parameters. If the issue persists after following these steps, further investigation into your specific FreePBX and GSM TG400 setup may be required. Sources: pkg/siptest/client.go