https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> 407 Proxy Authentication re...
# ❓・ai-evy-support
t
@AI Evy 407 Proxy Authentication required Getting this answer with transfer to number (twilio error)
a
Thanks for tagging me @teemu2454. I'll look through relevant sources and get back to you shortly.
### Answer I don't have documentation that explains a "407 Proxy Authentication Required" error on call transfers, so I can't confirm its exact cause or a fix. The docs do cover a few things that may be relevant to a transfer that fails with an authentication-style error: - The transfer destination can be an E.164 number or a SIP URI in the form
sip:username@domain
. SIP URI targets don't support inline credentials, so
sip:user:password@domain
won't work, and the tool has no separate username or password field for the transfer destination. If the destination requires authentication, use custom SIP headers (for example, an
X-
header your SIP endpoint parses), or end the transfer at an endpoint you control that then authenticates onward.[(1)]()[(2)]() - If you use a custom telephony number, the SIP trunk credentials come from the termination URI, username, and password you provided when importing the number. Retell's SIP server doesn't have a static IP, so credential-based authentication is typically used on the trunk.[(3)]() - You can check how your number is configured, including its
sip_outbound_trunk_config
(termination URI, auth username, transport, codecs), with Get Phone Number.[(4)]() - Warm transfers use SIP DIAL and cold transfers use SIP REFER by default or SIP INVITE as a selectable cold transfer mode. If you're showing the user's number as caller ID, your telephony provider must support caller ID override or the transfer fails. Try switching Displayed Caller ID to Retell Agent's Number to rule that out.[(1)](
all)[(2)]() To narrow this down, could you share: - whether the number is a Retell number or an imported/custom SIP trunk number - the transfer type (cold, warm, agentic warm) and, for cold, whether it's SIP INVITE or SIP REFER - whether the destination is an E.164 number or a SIP URI If this continues, check out these potentially useful sources: [Transfer call tool](), [Call transfer node](), [Get Phone Number](). I can also try a general answer based on my knowledge if you'd like.
​ To learn more, see the sources I considered: [[1] Transfer call tool (single & multi-prompt agents)](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Call transfer node in conversation flow](https://docs.retellai.com/build/conversation-flow/call-transfer-node) [[3] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[4] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.