So i switched my configuration from elastic sip trunk to SIP URI.
Why? it is my understanding that elastic sip trunk has low-bitrate codecs and lowers call quality.
However since the change i haven't noticed that much of an improvement.
I can see that twilio is using The codec PCMU (G.711 µ-law)
✅ PCMU is an uncompressed, high-quality, wideband codec.
✅ It's the default for Twilio SIP and often preferred for voice AI because it's lossless (at ~64 kbps).
✅ No packet loss or jitter was detected.
✅ No transcoding to low-bitrate codecs like G.729, GSM, or downsampled Opus is happening on Twilio’s end.
Since the codec is already PCMU, and network jitter/packet loss are clean, your poor call quality is likely caused after Twilio hands the call off to the SIP URI — meaning on the RetellAI / LiveKit SIP bridge side.
Here’s what might be happening:
✅ Twilio → SIP Bridge (clean, uncompressed audio)
❌ SIP Bridge → RetellAI Agent (downsampled, transcoded, or limited bandwidth)
My question:
1
When using the dial-to-SIP URI method, are incoming SIP calls using G.711 passed through directly, or is the audio transcoded to Opus or another codec internally?
If Opus, at what bitrate?
Can we enable full-band Opus for best transcription performance?"
2
Are you using WebRTC with a restricted audio setting?
Are you limiting bitrate or sample rate?