https://retellai.com/?utm_source=discord&utm_medium=seo logo
o
Hey @AI Evy ! I’ve followed the Retell Twilio integration guide exactly — SIP trunk, credentials, number, and agent setup are all done. My Twilio number (+61483980711) shows up in the Retell dashboard and is linked to my outbound agent. But when I click “Make an outbound call,” the modal closes without doing anything. Browser console shows 404 errors like: get-a2p-application, get-phone-verification-application, get-branded-call-application It seems like the number isn’t fully provisioned on Retell’s backend. How do I fix it? Appreciate any help 🙏
a
Thanks for tagging me @ompatel2019. I'll look through relevant sources and get back to you shortly.
### Answer Based on your description, it sounds like there might be an issue with the number import process or configuration. Let me help you troubleshoot this step by step. First, verify that your number was properly imported using the Get Phone Number API [(1) ]() . You can check this programmatically:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+61483980711') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
If the number isn't properly imported, you'll need to import it using the Import Phone Number API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
 phone_number: '+61483980711',
 termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Make sure you're providing the correct termination URI from your Twilio elastic SIP trunk setup [(3) ]() . The termination SIP URI should end with ".pstn.twilio.com" [(2) ]() . For international calling from Australia, you'll also need to configure geographic permissions in Twilio [(3) ]() . Search "geo" to find the "Voice Geographic Permissions" setting, choose "Elastic Sip Trunking" in selector, and select the countries you would like to dial . If you set up authentication via credentials in your SIP trunk, make sure to include the username and password when importing the number [(2) ]() :
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.import({
 phone_number: '+61483980711',
 termination_uri: 'your-termination-uri.pstn.twilio.com',
 sip_trunk_auth_username: 'username',
 sip_trunk_auth_password: '123456'
}) ;
The 404 errors you're seeing suggest the number might not be fully provisioned in Retell's system. Try re-importing the number with the correct configuration, and ensure your Twilio SIP trunk is properly set up with the correct termination URI [(3) ]() .
​ To learn more, see the sources I considered: [[1] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[3] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy im getting these errors on the console even though the number IS in the backend and importing it manually gives correct error
Hey
Hello?
@ompatel2019
@AI Evy
a
Thanks for the follow-up, @ompatel2019. I'll get back to you soon.
### Answer If your number is already in the backend but you're still seeing console errors when trying to make outbound calls, this could indicate a configuration issue with your Twilio SIP trunk setup [(1) ]() . First, verify your Twilio termination SIP URI configuration. Make sure you're using a localized termination URI that's near your region . Check that there are no spaces in the termination SIP URI, as this can cause connection issues . Since you mentioned the number imports correctly but still shows console errors, double-check your authentication credentials. The username you enter should be the actual username from your Twilio credentials, not the friendly name that shows in the credential list . For your Australian number (+61483980711) , ensure you've configured international dialing permissions in Twilio by searching for "Voice Geographic Permissions" and selecting the countries you want to dial under "Elastic Sip Trunking" . If the console errors persist despite proper configuration, try deleting and re-importing the number with the correct termination URI and credentials [(2) ]() . When re-importing, make sure to use the exact termination SIP URI from your Twilio elastic SIP trunk setup [(1) ]() . The specific console errors you're seeing (get-a2p-application, get-phone-verification-application, get-branded-call-application) suggest there might be an issue with how the number is provisioned in Retell's system, even though it appears in your dashboard. If these steps don't resolve the issue, I'd recommend checking the call history and detailed logs for any SIP error codes or disconnection reasons that might provide more insight into the root cause [(2) ]()
.
​ To learn more, see the sources I considered: [[1] Twilio](https://docs.retellai.com/deploy/twilio) [[2] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy just explain each of these errors 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-phone-verification-application/+61483980711 404 (Not Found) 7023-a8904f11068f4db7.js:1 Error fetching spam remediation: Error: Not Found at d (9367-c8b62e68d2c3e2fb.js:1:440325) at t0 (9367-c8b62e68d2c3e2fb.js:1:477542) at async e (page-eca625f85833da85.js:1:90642) 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-branded-call-application/+61483980711 404 (Not Found) 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-a2p-application/+61483980711 404 (Not Found) 7023-a8904f11068f4db7.js:1 Error fetching spam remediation: Error: getA2PApplicationByPhoneNumber: A2P Application not found for the given phone number at d (9367-c8b62e68d2c3e2fb.js:1:440325) at K (page-eca625f85833da85.js:1:14369) at async l (page-eca625f85833da85.js:1:90848) 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-branded-call-application/+61483980711 404 (Not Found) 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-a2p-application/+61483980711 404 (Not Found) 7023-a8904f11068f4db7.js:1 Error fetching spam remediation: Error: getA2PApplicationByPhoneNumber: A2P Application not found for the given phone number at d (9367-c8b62e68d2c3e2fb.js:1:440325) at K (page-eca625f85833da85.js:1:14369) at async l (page-eca625f85833da85.js:1:90848) 1347-8691f24307215008.js:80 GET https://api.retellai.com/get-phone-verification-application/+61483980711 404 (Not Found) 7023-a8904f11068f4db7.js:1 Error fetching spam remediation: Error: Not Found at d (9367-c8b62e68d2c3e2fb.js:1:440325) at t0 (9367-c8b62e68d2c3e2fb.js:1:477542) at async e (page-eca625f85833da85.js:1:90642) one by one clearly
a
Thanks for the follow-up, @ompatel2019. I'll get back to you soon.
### Answer Here's what each error means: *1. Phone Verification Application Error (404) *
Copy code
GET <https://api.retellai.com/get-phone-verification-application/+61483980711> 404 (Not Found)
This error indicates your phone number doesn't have a verified phone number application set up [(1) ]() . Phone verification helps prevent your number from being marked as "Spam Likely" . To fix this, you need to create a business profile and apply for phone number verification through the dashboard . *2. Branded Call Application Error (404) *
Copy code
GET <https://api.retellai.com/get-branded-call-application/+61483980711> 404 (Not Found)
This means your number doesn't have a branded caller ID application configured [(2) ]() . Branded caller IDs display your business name when making calls, which builds customer trust . You can set this up by creating a business profile and applying for branded calling through the phone number configuration . *3. A2P Application Error (404) *
Copy code
GET <https://api.retellai.com/get-a2p-application/+61483980711> 404 (Not Found)
This indicates there's no Application-to-Person (A2P) registration for your number. A2P registration is typically required for business messaging and calling compliance. 4. Spam Remediation Errors
Copy code
Error fetching spam remediation: Error: Not Found
Error: getA2PApplicationByPhoneNumber: A2P Application not found for the given phone number
These errors occur because the dashboard is trying to fetch spam prevention configurations that haven't been set up for your number. Why This Happens: These are optional features for improving call deliverability and trust. The dashboard checks for these applications automatically, but they're not required for basic calling functionality [(1) ]() [(2) ]() . The 404 errors are expected if you haven't set up these additional verification and branding features. To Resolve: If you want to eliminate these errors and improve call pickup rates, you can apply for verified phone number status [(1) ]() and branded calling [(2) ]() through your dashboard's phone number configuration section.
​ To learn more, see the sources I considered: [[1] Apply for verified phone number](https://docs.retellai.com/build/telephony/verified-phone) [[2] Branded Caller ID for Trusted Business Calls | Retell AI](https://www.retellai.com/blog/branded-caller-ids-and-verified-phone-numbers) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.