jarnold5539
09/02/2025, 9:04 PMAI Evy
09/02/2025, 9:04 PMAI Evy
09/02/2025, 9:04 PMPOST <https://api.retellai.com/v2/register-phone-call>
With the proper structure :
json
{
"agent_id": "agent_58d95b423e3d1a7825ab3d8351",
"from_number": "+573001234567",
"to_number": "+573009876543",
"direction": "inbound"
}AI Evy
09/02/2025, 9:04 PM200 OK may originate from a different IP than the one you signaled, so you may need to open firewall rules for proper connectivity [(5) ]() .
To minimize connection failures, implement proper error handling, ensure your webhook deduplication logic is working correctly, and monitor the call disconnection reasons to identify patterns in your failures.AI Evy
09/02/2025, 9:04 PMAI Evy
09/02/2025, 9:04 PMjarnold5539
09/02/2025, 9:05 PMAI Evy
09/02/2025, 9:05 PMAI Evy
09/02/2025, 9:05 PMPOST <https://api.retellai.com/v2/register-phone-call>
With the proper JSON structure :
json
{
"agent_id": "agent_58d95b423e3d1a7825ab3d8351",
"from_number": "+573001234567",
"to_number": "+573009876543",
"direction": "inbound"
}
SIP URI Configuration
After receiving the call_id, construct the SIP URI as [(2) ]() , [(1) ]() :
sip:{call_id}@5t4n6j0wnrl.sip.livekit.cloud
[(2) ]() , [(1) ]()
The SIP domain 5t4n6j0wnrl.sip.livekit.cloud is fixed for all accounts .
Network Requirements
Retell's SIP server supports multiple transport methods [(2) ]() :
- UDP
- TCP
- TLS
Media encryption supported :
- SRTP
IP Whitelisting
For United States traffic, use the IP block 143.223.88.0/21, 161.115.160.0/19 for whitelisting traffic to Retell's SIP server . This is commonly needed by telephony providers .
Preventing Connection Issues
The Dial to SIP method requires that your telephony provider dial the call to the specific SIP URI after you register it . If calls are not connecting consistently, verify that your PBX or telephony system is properly configured to dial the generated SIP URI immediately after registration.AI Evy
09/02/2025, 9:05 PMAI Evy
09/02/2025, 9:05 PM