https://retellai.com/?utm_source=discord&utm_medium=seo logo
Subject: Inbound calls rejected as Busy — phone nu...
# ❓・ai-evy-support
h
@AI Evy Subject: Inbound calls rejected as Busy — phone number format mismatch Details: Number 6786072884 imported via SIP trunk (Twilio) Twilio sends inbound SIP INVITEs to sip:+16786072884@sip.retellai.com Retell stores the number as 6786072884 (missing +1 country code) Every inbound call gets SIP 486 Busy, 0 seconds duration Outbound calls from Retell dashboard work fine UI won't let me delete and re-add as +16786072884 — gives "Phone number already exists" error Need the number updated to +16786072884 on the backend to match Twilio's E.164 format
a
Thanks for tagging me @Hour Table. I'll look through relevant sources and get back to you shortly.
### Answer The issue is that your phone number was imported without the proper E.164 format. Phone numbers must be in E.164 format (+country code, then number with no space, no special characters) , for example
"+14157774444"
. [(1) ]() Since the UI won't let you delete due to the "already exists" error, try using the Update Phone Number API to correct the format. However, note that the path parameter itself requires the number in E.164 format. [(2) ]() Recommended approach: 1. Delete via API — Use the Delete Number API with the number as currently stored (
6786072884
) to remove it 2. Re-import with correct format — Import the number properly in E.164 format:
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: '+16786072884',
  termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(1) ]() Make sure to: - Include the
+
prefix followed by the country code [(3) ]() - Remove any spaces or special characters from the number If the delete API also fails due to format mismatch, you may need to reach out to support directly: - Visit [Contact Sales]() - Check out [) Would you like me to provide a general answer on alternative approaches?
​ To learn more, see the sources I considered: [[1] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) [[3] SIP Trunk Outbound Call - No SIP INVITE reaching my server](https://community.retellai.com/t/sip-trunk-outbound-call-no-sip-invite-reaching-my-server/760) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.