https://retellai.com/?utm_source=discord&utm_medium=seo logo
Solved low audio on Twilio SIP
# ❓・ai-evy-support
g
@AI Evy Solved low audio on Twilio SIP? Need help with codec/config Following up on audio volume issue. Support bot mentioned some useful points about codec configuration affecting "volume perception." My current Twilio SIP setup: Using Elastic SIP Trunk with sip:sip.retellai.com Codecs: Currently using PCMU/PCMA (standard Twilio defaults) Transport: Not sure if TCP or UDP NAT/Firewall: All IPs whitelisted as per docs The issue: Inbound audio (customer voice) extremely low, but: RTP flows fine (no silence, just very quiet) Outbound audio perfect Same Twilio trunk works normally with other services Questions: What codecs work best for audio volume? Docs mention G722, G729, OPUS for Telnyx. Should I force G722 for better quality? TCP vs UDP transport? Docs say UDP temporarily unsupported. Is this still true? Could this affect audio levels? Anyone using Twilio SIP successfully? What's your codec priority order? @RetellAI team - Can you check if my agent has any backend audio processing disabled? Or if there's a codec mismatch causing low gain? Really need to solve this for production. Happy to share Twilio SID/configs privately if someone from team can investigate. Thanks! 🙏
a
Thanks for tagging me @ghal.ro. I'll look through relevant sources and get back to you shortly.
Verify your Twilio trunk's codec priority order matches what Retell expects For backend investigation of your specific agent configuration, I recommend reaching out through the official support channels at [Contact Sales]() or [) , as agent-specific audio processing settings aren't documented in the available sources. **
### Answer Based on the Retell AI documentation for Twilio SIP trunk configuration, here are the key points addressing your audio issue: ## Codec Configuration For Telnyx (which provides similar guidance) , the documentation specifies selecting
G722
,
G729
, and
OPUS
as codecs [(1) ]() . While the Twilio-specific documentation doesn't explicitly list codec preferences, G722 is a wideband codec that typically provides better audio quality than narrowband codecs like PCMU/PCMA [(2) ]() . ## Transport Protocol The Custom Telephony Overview documentation explicitly states that UDP is supported, along with TCP and TLS [(3) ]() . The documentation shows that for TCP, the SIP server URL needs to be
sip:sip.retellai.com;transport=tcp
. For UDP, it should be
sip:sip.retellai.com;transport=udp
. However, there's a note in the Telnyx documentation mentioning "UDP temporarily not supported due to a connectivity issue" for that specific provider [(1) ]() . This appears to be Telnyx-specific rather than a general Retell limitation. ## Twilio SIP Trunk Setup For your Twilio Elastic SIP Trunk, the documentation specifies [(2) ]() : 1. Set up origination with Retell's SIP server address:
sip:sip.retellai.com
2. For termination, use your Twilio termination SIP URI 3. Whitelist IP addresses in the range as shown in the documentation ## Recommendations Based on the documentation: 1. Try explicitly setting your transport protocol to TCP using
sip:sip.retellai.com;transport=tcp
in your origination URI [(3) ]() 2. Consider testing with G722 codec if your Twilio trunk supports it, as it provides wideband audio 3.
​ To learn more, see the sources I considered: [[1] Telnyx](https://docs.retellai.com/deploy/telnyx) [[2] Twilio](https://docs.retellai.com/deploy/twilio) [[3] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.