I noticed that LiveKit SIP trunks currently support only the G.722 and G.711 codecs. Is there any way or workaround to initiate workers using the Opus codec instead?
Also, are there any plans to add Opus codec support for LiveKit SIP trunks in the future?
@Robbe, Boss, no way to flip it on today. The codec-list config landed in PR #672 (merged 2026-05-06), which added OnlyListedCodecs in SIPMediaConfig, but the PR description explicitly says “For now there are no new supported codecs. The first planned additions are OPUS and AMR-WB which will follow shortly in separate PRs” [ livekit/sip # 672 ]. So the plumbing is in place but Opus and AMR-WB aren’t wired up yet. The PR queue at [ Pull requests · livekit/sip · GitHub ] is where the enablement PR will appear.
For PSTN destinations the codec choice matters less than it looks anyway. Twilio, Telnyx, and Plivo terminate to G.711 µ-law at their edge regardless of what you negotiate on the LK side, so Opus over SIP only meaningfully helps for IP-to-IP SIP (internal trunks, SIP-over-WebRTC peers). For PSTN, G.711/G.722 is the ceiling.