https://retellai.com/?utm_source=discord&utm_medium=seo logo
The function transfer_call is not working for me
# ❓・ai-evy-support
x
@AI Evy The function transfer_call is not working for me. Can I put any phone number to transfer the call to? Do I need to configure the phone number in any way?
a
Thanks for tagging me @xavitexarai_79344. I'll look through relevant sources and get back to you shortly.
### Answer You can use the transfer_call function to transfer a call to a phone number, but there are some requirements and configuration steps to ensure it works correctly: - The destination number should be in the correct format (E.164, such as +1234567890) [(1) ]() . - If you want the transfer destination to see the original caller’s number (not the Retell agent’s number) , you need to configure your telephony provider to enable SIP REFER, enable transfer to PSTN, and set caller ID as transferee [(2) ]() . - For providers like Twilio or Telnyx, make sure that call transfers to PSTN are enabled in your SIP trunk configuration [(1) ]() . - If transfers are not working (for example, the call rings once and then fails) , check your call settings and increase the transfer ring timeout (e.g., set it to 30 seconds) in your agent settings . - If you get errors like "Invalid_destination," it may indicate a configuration issue with your telephony provider or the number format [(3) ]() . You do not need to pre-register every destination number, but the provider and number configuration must allow transfers as described above.
​ To learn more, see the sources I considered: [[1] Hi team, I’m having trouble with the transfer_call function.](https://discord.com/channels/1186424376300679209/1384634772772360383) [[2] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[3] Ai caller keep giving me the error message Invalid_destination](https://retell.discourse.group/t/ai-caller-keep-giving-me-the-error-message-invalid-destination/17) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
@AI Evy I'm getting this message. How can I solve the issue?
a
Thanks for the follow-up, @xavitexarai_79344. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Ai caller keep giving me the error message Invalid_destination](https://retell.discourse.group/t/ai-caller-keep-giving-me-the-error-message-invalid-destination/17) [[2] Invalid_destination](https://discord.com/channels/1186424376300679209/1394314919066865676) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer The "Invalid_destination" error when attempting a transfer with transfer_call typically indicates an issue with the configuration of your telephony provider or the format of the phone number you are using [(1) ]() [(2) ]() . To address this: - Ensure the phone number is in E.164 format (e.g., +1234567890) . - Confirm that your telephony provider allows outbound transfers to the intended destination. - If using a SIP provider, verify that the destination number is valid and reachable from your SIP trunk. - Double-check your provider’s documentation for any restrictions on allowed destinations. You do not need to pre-register every destination number, but the transfer will only succeed if both the number format and provider configuration are correct [(1) ]() .
x
@AI Evy Is it possible to put my personal phone number so that the transfer is transferred to my personal phone number (it is not a VoIP number)?
a
Thanks for the follow-up, @xavitexarai_79344. I'll get back to you soon.
### Answer Yes, you can set your personal phone number (even if it is not a VoIP number) as the transfer destination for the transfer_call function, as long as your telephony provider allows outbound transfers to that number and the number is in the correct E.164 format (e.g., +1234567890) [(1) ]() [(2) ]() . There is no requirement to pre-register the destination number, but transfers will only succeed if your provider supports transferring to PSTN (public switched telephone network) numbers and your configuration (such as SIP trunk settings) permits it . If you encounter issues, double-check that your provider enables call transfers to PSTN and that the number is formatted properly .
​ To learn more, see the sources I considered: [[1] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) [[2] Hi team, I’m having trouble with the transfer_call function.](https://discord.com/channels/1186424376300679209/1384634772772360383) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.