kevyourdev
08/21/2025, 8:15 AMAI Evy
08/21/2025, 8:15 AMAI Evy
08/21/2025, 8:16 AMcountry_code parameter currently only supports US and CA options [(2) ]() . The area_code parameter format is a 3 digit integer and currently only supports US area codes .
For purchasing numbers, you can use the Create Phone Number API:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.create() ;
console.log(phoneNumberResponse.inbound_agent_id) ;
If you're connecting via SIP trunking with Twilio, ensure you've properly set up the termination SIP URI and that you're using a localized termination URI near your region [(1) ]() . Common issues include spaces in the Termination SIP URI (which should be removed) and incorrect username/credentials .
The "Invalid_destination" error mentioned in community discussions suggests the number may be blocked or flagged [(3) ]() . For Twilio-connected numbers, this could indicate carrier blocking or poor number reputation [(4) ]() .AI Evy
08/21/2025, 8:16 AMAI Evy
08/21/2025, 8:16 AMkevyourdev
08/21/2025, 8:34 AMAI Evy
08/21/2025, 8:34 AMAI Evy
08/21/2025, 8:34 AMAI Evy
08/21/2025, 8:34 AMAI Evy
08/21/2025, 8:34 AMkevyourdev
08/21/2025, 8:42 AMkevyourdev
08/21/2025, 8:43 AMAI Evy
08/21/2025, 8:43 AMAI Evy
08/21/2025, 8:43 AMtelephony_provider_unavailable disconnection reason indicates that outbound calls are not connecting because the telephony provider is not available [(1) ]() . This is classified as a not_connected call status rather than an error .
Troubleshooting Steps:
Since you're using custom telephony (Twilio) , here are the recommended steps [(2) ]() :
1. Double check your configuration and make sure you imported the right information
2. If the configuration is not correct, delete the imported number and re-import
3. If that does not solve it, please check with your telephony provider to see what's the error on their side
For International Calling to Taiwan:
The telephony_provider_unavailable error often occurs with international calling when there are media compatibility issues or provider restrictions [(3) ]() . Since you've already configured Twilio's Voice Geographic Permissions, the issue may be related to:
- SIP trunk authentication problems [(4) ]()
- Media compatibility issues between Retell AI and Twilio [(3) ]()
- Twilio's specific restrictions on calling Taiwan numbers
Next Steps:
Check your call detailed logs for the specific SIP error code and error message [(2) ]() . In most cases, this would be enough to identify the root cause . You should also verify with Twilio directly whether your account has the proper permissions and configuration to call Taiwan (+886) numbers.AI Evy
08/21/2025, 8:43 AMAI Evy
08/21/2025, 8:43 AM