alert-summer-60566
12/10/2025, 8:47 AMtall-airline-16756
12/10/2025, 8:47 AMtall-airline-16756
12/10/2025, 8:47 AMalert-summer-60566
12/10/2025, 8:52 AMtall-airline-16756
12/10/2025, 8:52 AMalert-summer-60566
12/10/2025, 8:53 AMtall-airline-16756
12/10/2025, 8:54 AMmedia_encryption to match (SIP_MEDIA_ENCRYPT_ALLOW or SIP_MEDIA_ENCRYPT_REQUIRE) if SRTP is required.
2. Verify codecs: Ensure the trunk and LiveKit share at least one codec (PCMU/PCMA or G.722). If Frejun uses uncommon codecs, enable PCMU/PCMA or G.722 on the trunk.
3. Open RTP ports: Ensure UDP ports 10000–20000 (RTP) are open between LiveKit and the provider; signaling over TCP won’t carry RTP.
Please paste a sanitized snippet of the SIP INVITE/200 OK SDP exchanged (remove usernames/passwords and any sensitive tokens) or a short LiveKit SIP log showing SDP/cipher lines and any SRTP-related messages. With that I’ll check codec negotiation and SRTP flags and give exact next steps.
Sources: Secure trunking | LiveKit docs | HD voice for SIP | LiveKit docs | Ports and firewall | LiveKit docs | Create and configure a Plivo SIP trunk | LiveKit docsalert-summer-60566
12/10/2025, 9:01 AMtall-airline-16756
12/10/2025, 9:01 AMmedia_encryption to match (SIP_MEDIA_ENCRYPT_ALLOW or SIP_MEDIA_ENCRYPT_REQUIRE).
• RTP ports/UDP blocked by firewall/NAT: media is offered on UDP (port 56980). Ensure your LiveKit server’s RTP port range (default 10000–20000 or your configured range) is open/forwarded and that IP 143.223.91.7 is reachable from Frejun.
• Public IP / NAT mismatch: confirm the IP in SDP (143.223.91.7) is the correct reachable public IP. If LiveKit is behind NAT, ensure STUN/ICE or correct public IP configuration is in place.
What I recommend next:
1. Ask Frejun Teler whether SRTP is required for media.
2. Verify firewall/NAT allows UDP through your RTP range (and test connectivity to 143.223.91.7:56980).
3. If Frejun requires SRTP, change LiveKit trunk media_encryption to match and retry. If they do not require SRTP, confirm both sides accept PCMU and retry.
If you want, paste a short sanitized snippet of the 200 OK SDP after you change settings (or the provider’s response about SRTP) and I’ll confirm the exact fields to update.alert-summer-60566
12/10/2025, 9:14 AM{
"sipTrunkId": "id",
"name": "Outbound Trunk 1",
"address": "custom domain",
"transport": "SIP_TRANSPORT_TLS",
"numbers": [
"+91xxxxxx"
],
"authUsername": "username",
"authPassword": "password",
"mediaEncryption": "SIP_MEDIA_ENCRYPT_REQUIRE"
}tall-airline-16756
12/10/2025, 9:14 AM"mediaEncryption": "SIP_MEDIA_ENCRYPT_ALLOW"
• Or disable if Frejun cannot do SRTP:
"mediaEncryption": "SIP_MEDIA_ENCRYPT_DISABLE"
1. Ensure UDP RTP is reachable:
◦ Open/forward your RTP port range (default 10000–20000) and confirm the advertised media IP (143.223.91.7) and port (56980) are reachable from Frejun.
1. Retest the call and paste the updated 200 OK SDP (sanitized) if audio still fails.
If you want, tell me which option you applied and I’ll review the new SDP.alert-summer-60566
12/10/2025, 9:20 AMtall-airline-16756
12/10/2025, 9:20 AMmediaEncryption.
3. Confirm UDP for your RTP range (default 10000–20000) is open and the SDP media IP (e.g., 143.223.91.7) is reachable from Frejun.
Tell me which option you applied for mediaEncryption (ALLOW or DISABLE) and the answers above and I’ll give the exact next step.alert-summer-60566
12/10/2025, 9:21 AMtall-airline-16756
12/10/2025, 9:21 AMactive and do any participants show an audio track published? (If you can share the participant state JSON or a short log line showing sip attributes and tracks, paste a sanitized snippet.)
If all three are confirmed OK, paste the latest sanitized 200 OK SDP (only the SDP portion) and a short LiveKit SIP log around the 200 OK — I’ll inspect the offered IP/port and any SRTP/RTCP fields and give the next exact step.alert-summer-60566
12/10/2025, 9:24 AMtall-airline-16756
12/10/2025, 9:24 AMactive but ended with media-timeout. Focus on RTP/network reachability next.
Please do these three checks and report back:
1. From Frejun, verify UDP can reach the exact IP:port advertised in the 200 OK SDP (your participant shows fromUri.ip = 143.223.91.68 and earlier SDP used port 56980). Ask Frejun to test sending UDP packets to 143.223.91.68:56980 and report success/failure.
2. Confirm your LiveKit server allows UDP RTP:
◦ Open inbound/outbound UDP ports 10000–20000 (or your configured RTP range) on server firewall, cloud security group, and any edge/load‑balancer.
◦ If you have port forwarding/NAT, ensure it maps external RTP ports to the LiveKit host.
1. Validate public IP / ICE:
◦ Ensure 143.223.91.68 is the reachable public IP advertised in SDP. If LiveKit is behind NAT, configure externalIp or enable STUN/TURN so a reachable candidate is advertised.
If those are open and Frejun’s UDP test succeeds but audio still fails, paste the latest sanitized 200 OK SDP (only SDP) and a short SIP log around the 200 OK — I’ll inspect the offered IP/port and candidate lines and give the exact next step.alert-summer-60566
12/10/2025, 9:26 AMtall-airline-16756
12/10/2025, 9:27 AMalert-summer-60566
12/10/2025, 9:30 AMtall-airline-16756
12/10/2025, 9:30 AMmediaEncryption to SIP_MEDIA_ENCRYPT_ALLOW (or SIP_MEDIA_ENCRYPT_REQUIRE if provider mandates SRTP).
• Retest; check the 200 OK SDP includes SRTP crypto lines and that Frejun can send SRTP to the advertised IP:port.
If you choose, tell me:
• Which option you applied (open UDP or enabled SRTP), and
• The result of a UDP send test from Frejun to the SDP IP:port (success/failure).
If audio still fails, paste the latest sanitized 200 OK SDP and a short LiveKit SIP log around the 200 OK and I’ll inspect it.alert-summer-60566
12/10/2025, 9:45 AMtall-airline-16756
12/10/2025, 9:46 AMmediaEncryption: "SIP_MEDIA_ENCRYPT_ALLOW". The remaining blocker is network/media reachability. Please do these three actions and report back:
1. Open/confirm UDP RTP ports
◦ Ensure inbound/outbound UDP 10000–20000 (or your configured RTP range) is allowed on the LiveKit host, cloud security groups, and any load‑balancer/NAT.
1. Verify advertised SDP IP/port is reachable
◦ Ask Frejun to send a UDP probe to the exact IP:port shown in the 200 OK SDP (example earlier: 143.223.91.68:56980) and tell you whether packets arrive. A simple test: nc -u <ip> <port> or an equivalent UDP check from their side.
1. Confirm SRTP negotiation in new SDP
◦ Make a test call after steps 1–2. If Frejun supports SRTP, the 200 OK SDP should include SRTP crypto lines (a=crypto / SRTP indicators). If SRTP lines are present and UDP probes succeed but audio still fails, paste the sanitized 200 OK SDP and a short LiveKit SIP log around the 200 OK and I’ll inspect the fields immediately.
If you cannot open UDP, let me know and I’ll walk you through TURN/relay options, but Frejun must be able to reach the RTP/SRTP IP:port advertised by LiveKit for two‑way audio.alert-summer-60566
12/10/2025, 9:46 AMtall-airline-16756
12/10/2025, 9:47 AMrtpPortRange in livekit.yaml.
2) Open ports on the host
• Linux (ufw): sudo ufw allow 10000:20000/udp
• Linux (iptables): sudo iptables -A INPUT -p udp --dport 10000:20000 -j ACCEPT
• Windows (PowerShell):
New-NetFirewallRule -DisplayName "LiveKit RTP UDP" -Direction Inbound -Protocol UDP -LocalPort 10000-20000 -Action Allow
3) Open ports in cloud/network ACLs
• AWS: Add inbound rule in Security Group → UDP 10000–20000 (Source: Frejun IPs or 0.0.0.0/0 for testing).
• GCP: Create VPC firewall rule allowing udp:10000-20000 from Frejun IPs.
• Azure: Add NSG inbound rule UDP ports 10000–20000.
• Any load‑balancer or edge device must also allow/forward these UDP ports to the LiveKit host.
4) Ensure NAT/port forwarding and public IP
• If behind NAT, forward external UDP ports to the LiveKit host and ensure the public IP advertised in SDP matches the reachable IP (or set externalIp / use STUN).
5) Verify reachability from Frejun
• Ask Frejun to send a UDP probe to the SDP IP:port shown in the 200 OK (example: 143.223.91.68:56980).
◦ Example test they can run: nc -u <LiveKit-public-IP> 56980
◦ If probe reaches LiveKit, the UDP path is open.
6) Re-test call
• Make a call. If LiveKit shows the SIP participant active and no media-timeout, audio should work.
If you prefer, tell me your hosting environment (AWS/GCP/Azure/on‑prem) and I’ll give the exact commands/console steps for that provider.alert-summer-60566
12/10/2025, 9:49 AMtall-airline-16756
12/10/2025, 9:49 AMalert-summer-60566
12/10/2025, 9:49 AM