https://retellai.com/?utm_source=discord&utm_medium=seo logo
Appreciate your help
# ❓・ai-evy-support
i
@AI Evy Appreciate your help.
a
Thanks for tagging me @ingjestrada2025_40585. I'll look through relevant sources and get back to you shortly.
### Answer The SIP endpoint format you're using (
sip:agent_id@sip.retellai.com
) is not correct for the "Dial to SIP URI" method [(1) ]() [(2) ]() . For inbound calls using the Dial to SIP URI method, you need to: 1. First call the Register Phone Call API to generate a
call_id
[(1) ]() [(3) ]() [(2) ]() 2. **Then dial to**:
sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud
[(1) ]() [(3) ]() The endpoint format you're using (
sip:agent_id@sip.retellai.com
) would only be valid if you were using Elastic SIP Trunking (Method 1) , where you import a phone number and configure SIP trunking with your provider [(1) ]() [(2) ]() . To fix the 486 Busy Here error: You need to register the call first using an HTTP POST request [(3) ]() :
Copy code
bash
curl -X POST <https://api.retellai.com/call/register> \
  -H "Authorization: Bearer YOUR_RETELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "AGENT_ID_HERE",
    "from_number": "+12137771234",
    "to_number": "+12137771235",
    "direction": "inbound"
}'
After receiving the
call_id
from this API response, construct your SIP endpoint as:
sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud
[(3) ]() [(2) ]() . The SIP domain
5t4n6j0wnrl.sip.livekit.cloud
is fixed for all accounts [(3) ]() . For transport methods, you can use UDP, TCP, or TLS [(1) ]() . **
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Inbound SIP Call to Retell Agent Rejected with “486 Busy Here”](https://discord.com/channels/1186424376300679209/1417691065363857470) [[3] DIAL TO SIP](https://discord.com/channels/1186424376300679209/1384533664502906950) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.