tch
11/14/2025, 12:36 AMAI Evy
11/14/2025, 12:37 AMAI Evy
11/14/2025, 12:37 AMAI Evy
11/14/2025, 12:37 AMAI Evy
11/14/2025, 12:37 AMtch
11/14/2025, 12:49 AMAI Evy
11/14/2025, 12:49 AMAI Evy
11/14/2025, 12:49 AMAI Evy
11/14/2025, 12:49 AMAI Evy
11/14/2025, 12:49 AMAI Evy
11/14/2025, 1:00 AMtch
11/14/2025, 1:00 AMAI Evy
11/14/2025, 1:01 AMAI Evy
11/14/2025, 1:01 AMAI Evy
11/14/2025, 1:01 AMtch
11/14/2025, 1:18 AMAI Evy
11/14/2025, 1:18 AMAI Evy
11/14/2025, 1:18 AMAI Evy
11/14/2025, 1:18 AMAI Evy
11/14/2025, 1:18 AMAI Evy
11/14/2025, 2:04 AMtch
11/14/2025, 2:04 AMAI Evy
11/14/2025, 2:04 AMsip:5t4n6j0wnrl.sip.livekit.cloud [(1) ]() .
The documentation describes the SIP server URI and transport methods but does not specify authentication requirements for the elastic SIP trunking setup . When you import a phone number using the elastic SIP trunking method, you provide configuration details like the area code, agent bindings, and webhook URLs, but authentication credentials for the SIP connection itself are not mentioned [(2) ]() .
This suggests that authentication is not required for forwarding calls to Retell's SIP endpoint when using elastic SIP trunking. However, if you continue to experience connection issues where calls don't reach the Retell dashboard, I recommend verifying your FreePBX trunk configuration matches the documented transport method (TCP in your case) and that your network allows traffic to Retell's IP blocks [(1) ]() .
If you need definitive confirmation about authentication requirements or continue experiencing issues, you may want to:
- Visit [Contact Sales]()
- Visit [)
Would you like me to provide a general answer based on my knowledge of SIP trunking instead?
---AI Evy
11/14/2025, 2:04 AMAI Evy
11/14/2025, 2:04 AMAI Evy
11/14/2025, 2:39 AMtch
11/14/2025, 2:39 AMAI Evy
11/14/2025, 2:39 AMsip:{call_id}@sip.retellai.com [(2) ]() . Without proper registration, Retell won't accept the call.
If issues persist:
- Check your origination settings in your SIP trunk configuration
- Review detailed logs in both FreePBX and the Retell dashboard [(5) ]()
- Consider opening a ticket with your telephony provider to verify SIP routing [(2) ]()
- Visit [Contact Sales]() for additional support
- Visit [)
The most likely causes are either a missing agent binding on the imported number or a NAT/routing issue preventing proper SIP message flow after the initial 180 Ringing response.
---
**AI Evy
11/14/2025, 2:39 AMSIP/2.0 180 Ringing) , but then FreePBX receives a busy signal (HANGUP CAUSE: 34 indicates "No circuit/channel available") [(1) ]() . This suggests the call is being rejected by Retell after the initial SIP handshake.
Here are the key troubleshooting steps for this scenario:
1. Verify the imported number configuration in Retell
Ensure your number is properly imported and has an inbound_agent_id configured [(2) ]() . Without an agent bound to the number, Retell may reject the call with a busy signal.
2. Check if the call appears in Retell's dashboard
Even though you mentioned earlier that no calls appear in the dashboard, with the call now reaching the 180 Ringing stage, check again. If a call record exists with status not_connected and disconnection reason dial_busy, this confirms Retell is rejecting the call [(1) ]() .
3. Review SIP transport configuration
You're using sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp [(2) ]() . Verify that:
- The transport method is correctly appended to the SIP URI
- Your FreePBX trunk is configured for TCP transport
- No firewall or NAT issues are blocking the TCP connection [(3) ]()
4. Check for NAT/routing issues
A community discussion mentions that NAT scenarios can prevent the ACK following the 200 OK from being properly routed, causing disconnections . Since you're receiving 180 Ringing but then getting busy, this could indicate a routing problem between FreePBX and RetelAI Evy
11/14/2025, 2:39 AMAI Evy
11/14/2025, 2:39 AMtch
11/14/2025, 5:39 AMAI Evy
11/14/2025, 5:39 AMAI Evy
11/14/2025, 5:39 AM180 Ringing stage but then receive a busy signal, firewall blocking could be preventing the full SIP message flow. Whitelisting these IP ranges should help ensure that all SIP traffic between your FreePBX server and Retell's SIP endpoint (5t4n6j0wnrl.sip.livekit.cloud) can flow properly .
---
**AI Evy
11/14/2025, 5:39 AMAI Evy
11/14/2025, 5:39 AMtch
11/26/2025, 4:43 AMAI Evy
11/26/2025, 4:43 AMAI Evy
11/26/2025, 4:44 AMinsecure=invite
This suggests that authentication may not be strictly required for the connection to Retell's SIP endpoint. As we discussed earlier, the documentation does not mention SIP authentication credentials being required when forwarding calls to sip:5t4n6j0wnrl.sip.livekit.cloud [(1) ]() .
Given this context and the fact that Retell's elastic SIP trunking setup does not explicitly require authentication credentials , you might try setting the PJSIP Authentication to "None" initially. If that doesn't work, you could test with "Outbound" since you're initiating connections to Retell's SIP server.
If you continue to experience issues after testing these settings, I recommend:
- Visit [Contact Sales]()
- Visit [)
Would you like me to provide a general answer based on my knowledge of SIP trunking authentication instead?
---AI Evy
11/26/2025, 4:44 AMAI Evy
11/26/2025, 4:44 AMtch
11/26/2025, 10:24 PM[2025-11-26 22:13:33] VERBOSE[4425] res_pjsip_logger.c: <--- Received SIP response (487 bytes) from TCP:152.69.175.250:5060 --->
SIP/2.0 486 Rejected
Record-Route: <sip:10.244.56.38:40004;sipfe;transport=tcp;lr>
Record-Route: <sip:152.69.175.250:5060;transport=tcp;lr;sipfe>
Via: SIP/2.0/TCP 203.30.35.6:5060;alias;rport;branch=z9hG4bKPj62c50ad4-292d-4593-9636-98fd79fc3436
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=a3f1f95d-b69d-43b7-8bbd-e36b4097e7e8
To: <sip:0370640731@sip.retellai.com>;tag=SCL_zqjCaubhpdq3
Call-ID: 9267ed51-4436-4bc7-b921-c757c07d8e5e
CSeq: 4474 INVITE
Content-Length: 0 Please assist in troubleshooting this error message.AI Evy
11/26/2025, 10:24 PMAI Evy
11/26/2025, 10:25 PMAI Evy
11/26/2025, 10:25 PMSIP/2.0 486 Rejected response you're receiving indicates that Retell's SIP server is actively rejecting your inbound call [(1) ]() . This is the same "busy" signal we've been troubleshooting throughout this thread.
Based on your log, I notice you're dialing to sip:0370640731@sip.retellai.com. This is incorrect for elastic SIP trunking [(2) ]() .
Critical Issue: Wrong SIP Endpoint
You're using sip.retellai.com as your SIP server, but for elastic SIP trunking with TCP transport, you should be using sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp .
The endpoint sip.retellai.com is only used for the "Dial to SIP URI" method, which requires pre-registering each call via the Register Phone Call API and using the format sip:{call_id}@sip.retellai.com .
Correct Configuration for Elastic SIP Trunking:
1. Your FreePBX trunk should point to sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tcp as the origination SIP URI
2. Ensure your number 0370640731 is properly imported into Retell with an inbound_agent_id configured
3. Whitelist Retell's IP blocks in your firewall: 143.223.88.0/21 and 161.115.160.0/19
Alternative: If You Must Use sip.retellai.com
If you need to use sip.retellai.com, you must switch to the "Dial to SIP URI" method :
1. Call the Register Phone Call API before each inbound call to obtain a call_id
2. Dial to sip:{call_id}@sip.retellai.com
3. Note that with this method, you won't have access to Retell's transfer call feature
A community member successfully resolved a similar 486 Busy Here error by implementing this approach using Twilio Functions to call the Register Phone Call API and generate the proper SIP URI [(3) ](AI Evy
11/26/2025, 10:25 PMAI Evy
11/26/2025, 10:25 PMtch
11/26/2025, 10:52 PM[2025-11-26 22:41:21] VERBOSE[15015][C-00000089] app_dial.c: Called PJSIP/0370640731@Retell-AI
[2025-11-26 22:41:21] VERBOSE[11190] res_pjsip_logger.c: <--- Transmitting SIP request (1191 bytes) to TCP:152.69.175.250:5060 --->
INVITE sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud:5060 SIP/2.0
Via: SIP/2.0/TCP 203.30.35.6:5060;rport;branch=z9hG4bKPj1c12e555-f9cf-4c07-af7a-c12adf50b757;alias
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=781f1e3c-33e7-4906-ae6a-214c466237e2
To: <sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud>
Contact: <sip:asterisk@203.30.35.6:5060;transport=TCP>
Call-ID: a653a0a7-bbe2-491d-afd9-36cc3ad717f2
CSeq: 28172 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-15.0.38(16.19.0)
Content-Type: application/sdp
Content-Length: 446
v=0
o=- 332431735 332431735 IN IP4 203.30.35.6
s=Asterisk
c=IN IP4 203.30.35.6
t=0 0
m=audio 11184 RTP/SAVP 0 8 18 107 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:X/r7jb4Pw+htUWiYffR1V9gWmOBdd5zx/Nd2BMbK
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
[2025-11-26 22:41:21] VERBOSE[4425] res_pjsip_logger.c: <--- Received SIP response (565 bytes) from TCP:152.69.175.250:5060 --->
SIP/2.0 100 Processing
Record-Route: <sip:10.244.56.38:40004;lr;sipfe;transport=tcp>
Record-Route: <sip:152.69.175.250:5060;sipfe;transport=tcp;lr>
Via: SIP/2.0/TCP 203.30.35.6:5060;alias;rport;branch=z9hG4bKPj1c12e555-f9cf-4c07-af7a-c12adf50b757
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=781f1e3c-33e7-4906-ae6a-214c466237e2
To: <sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud>
Call-ID: a653a0a7-bbe2-491d-afd9-36cc3ad717f2
CSeq: 28172 INVITE
Content-Length: 0
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
[2025-11-26 22:41:21] VERBOSE[15015][C-00000089] app_dial.c: Everyone is busy/congested at this time (1:0/1/0)
The ``486 Rejected`` error does not appear anymore, but the call is terminated right after receiving ``SIP/2.0 100 Processing`` . I have also whitelisted ``143.223.88.0/21``, ``161.115.160.0/19`` and ``18.98.16.120/30`` IP blocks. The number ``0370640731`` has also been impoted to retell. The following is the output of ``GET https://api.retellai.com/get-phone-number/+61370640731`` request to Retell AI API endpoint: {
"phone_number": "+61370640731",
"phone_number_type": "custom",
"phone_number_pretty": "+61370640731",
"nickname": "Webstra PBX Service",
"inbound_agent_id": "agent_27eba2781f178eb29cf10f9cd7",
"inbound_agent_version": 0,
"last_modification_timestamp": 1764134738941,
"custom_sms_enabled": false,
"creation_timestamp": 1763074673304,
"sip_outbound_trunk_config": {
"termination_uri": "pbx.webstra.com.au",
"transport": "TCP",
"auth_username": "008"
}
}
Please assist in troubleshooting this issue further.AI Evy
11/26/2025, 10:52 PMAI Evy
11/26/2025, 10:53 PM486 Rejected error is gone, which means your FreePBX is now reaching the correct SIP endpoint. However, the call is terminating after receiving SIP/2.0 100 Processing with "Everyone is busy/congested" [(1) ]() .
Looking at your number configuration, I've identified a **critical issue**:
Problem: Missing Origination Configuration
Your imported number configuration shows only sip_outbound_trunk_config (termination settings for outbound calls) , but there's no origination configuration for inbound calls [(2) ]() . For elastic SIP trunking to work for inbound calls, Retell needs to know how to route calls back to your FreePBX server.
Required Fix:
When you import a custom telephony number for inbound calls, you must provide origination settings. Based on the documentation, you need to configure your number with the following additional parameters :
1. **Origination URI**: Your FreePBX server address (e.g., pbx.webstra.com.au:5060)
2. **Transport**: TCP (which you're already using)
3. Authentication credentials (if required by your FreePBX)
Additional Troubleshooting Steps:
1. Check Retell Dashboard for Call Records [(1) ]()
- Log into your Retell dashboard and check if this call attempt appears in the call history
- Look for the disconnection_reason field - it should provide more specific error details
- Check if the call status is not_connected with a specific error code
2. Verify Agent Configuration
- Your number shows "inbound_agent_id": "agent_27eba2781f178eb29cf10f9cd7" with "inbound_agent_version": 0
- Confirm this agent exists and is properly configured in your Retell dashboardAI Evy
11/26/2025, 10:53 PMRTP/SAVP) and multiple codecs (PCMU, PCMA, G729, Opus)
- Ensure Retell supports the codecs you're offering. The documentation mentions SRTP is supported [(2) ]()
4. Check for NAT/Routing Issues
- Your FreePBX is advertising 203.30.35.6 as the contact address
- Verify this IP is reachable from Retell's servers and that return traffic can reach your FreePBX [(3) ]()
5. Use List Calls API for Detailed Logs
- Call the List Calls API to retrieve detailed information about failed connection attempts [(4) ]()
- Filter by your phone number to see all recent attempts
Community-Reported Similar Issue:
A community member experienced a similar issue where calls reached 180 Ringing but then disconnected [(5) ]() . The solution involved either:
- Properly configuring bidirectional SIP trunk settings
- Or switching to the "Register Phone Call" method if elastic SIP trunking wasn't working
Immediate Next Steps:
1. Re-import your number with proper origination configuration (or update via API if supported)
2. Check the Retell dashboard for this call attempt and review the disconnection reason
3. Verify your FreePBX can receive inbound SIP traffic from Retell's IP blocks
If issues persist after configuring origination settings:
- Visit [Contact Sales]()
- Visit [)
---
**AI Evy
11/26/2025, 10:53 PMAI Evy
11/26/2025, 10:53 PMtch
11/26/2025, 11:14 PM[2025-11-26 23:04:45] VERBOSE[17723] res_pjsip_logger.c: <--- Transmitting SIP request (1192 bytes) to TCP:152.69.175.250:5060 --->
INVITE sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud:5060 SIP/2.0
Via: SIP/2.0/TCP 203.30.35.6:5060;rport;branch=z9hG4bKPj25f7e36d-437e-428c-a8d5-3b8f4aae4513;alias
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=3db2c432-04af-46e4-9d1f-7e0b918734c5
To: <sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud>
Contact: <sip:asterisk@203.30.35.6:5060;transport=TCP>
Call-ID: 0362a978-c6a1-4443-92e4-050ab0d81956
CSeq: 6214 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: FPBX-15.0.38(16.19.0)
Content-Type: application/sdp
Content-Length: 448
v=0
o=- 1338743282 1338743282 IN IP4 203.30.35.6
s=Asterisk
c=IN IP4 203.30.35.6
t=0 0
m=audio 10266 RTP/SAVP 0 8 18 107 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:sDP89ixpw5kHHQJuCFazz1geVeY39Ri4ZeCppw1+
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
[2025-11-26 23:04:45] VERBOSE[4425] res_pjsip_logger.c: <--- Received SIP response (564 bytes) from TCP:152.69.175.250:5060 --->
SIP/2.0 100 Processing
Record-Route: <sip:10.244.56.38:40004;sipfe;transport=tcp;lr>
Record-Route: <sip:152.69.175.250:5060;lr;sipfe;transport=tcp>
Via: SIP/2.0/TCP 203.30.35.6:5060;rport;branch=z9hG4bKPj25f7e36d-437e-428c-a8d5-3b8f4aae4513;alias
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=3db2c432-04af-46e4-9d1f-7e0b918734c5
To: <sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud>
Call-ID: 0362a978-c6a1-4443-92e4-050ab0d81956
CSeq: 6214 INVITE
Content-Length: 0
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
[2025-11-26 23:04:46] VERBOSE[4425] res_pjsip_logger.c: <--- Received SIP response (582 bytes) from TCP:152.69.175.250:5060 --->
SIP/2.0 180 Ringing
Record-Route: <sip:10.244.56.38:40004;sipfe;transport=tcp;lr>
Record-Route: <sip:152.69.175.250:5060;lr;sipfe;transport=tcp>
Via: SIP/2.0/TCP 203.30.35.6:5060;alias;rport;branch=z9hG4bKPj25f7e36d-437e-428c-a8d5-3b8f4aae4513
From: "0415944807" <sip:0415944807@192.168.2.37>;tag=3db2c432-04af-46e4-9d1f-7e0b918734c5
To: <sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud>;tag=SCL_97reFfpMcrfy
Call-ID: 0362a978-c6a1-4443-92e4-050ab0d81956
CSeq: 6214 INVITE
Content-Length: 0
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
[2025-11-26 23:04:46] VERBOSE[20086][C-0000008a] app_dial.c: PJSIP/Retell-AI-00000107 is ringing
[2025-11-26 23:04:46] VERBOSE[20086][C-0000008a] app_dial.c: Everyone is busy/congested at this time (1:0/1/0)
Futhermore, there is no recorded call in the Retell Dashboard. I require further assistance.AI Evy
11/26/2025, 11:14 PMAI Evy
11/26/2025, 11:14 PMsip:sip.retellai.com;transport=tcp (without the port specification)
2. Test the connection again and check if calls appear in the Retell Dashboard
3. If still no success, try the "Dial to SIP URI" method as an alternative
If issues persist after these configuration changes:
- Visit [Contact Sales]()
- Visit [)
The fact that you're receiving 180 Ringing means the SIP connection is being established, but something in the call routing or authentication is preventing Retell from accepting the call into its system.AI Evy
11/26/2025, 11:14 PMSIP/2.0 180 Ringing but the call still terminates with "Everyone is busy/congested" and no call appears in the Retell Dashboard is a critical clue [(1) ]() .
Key Issue: Call Not Reaching Retell's System
Since there's no record in the Retell Dashboard, the call is being rejected before it enters Retell's call handling system . This suggests an issue with how the call is being routed or authenticated at the SIP level.
Critical Configuration Check
Looking at your SIP INVITE, I notice you're dialing to:
sip:0370640731@5t4n6j0wnrl.sip.livekit.cloud:5060
However, according to the documentation, for TLS transport (which is recommended for the 5t4n6j0wnrl.sip.livekit.cloud endpoint) , you should use:
sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tlsAI Evy
11/26/2025, 11:14 PMsip:sip.retellai.com;transport=tcp
- For TLS: sip:5t4n6j0wnrl.sip.livekit.cloud;transport=tls
- For UDP: sip:sip.retellai.com;transport=udp
2. Check your FreePBX trunk configuration
- Ensure you're not appending :5060 to the SIP URI, as this may interfere with proper routing
- The transport method should be specified via the ;transport= parameter, not through port specification
3. Verify IP whitelisting is bidirectional
- Confirm your firewall allows both inbound and outbound traffic to/from Retell's IP blocks
- The IP blocks 143.223.88.0/21, 161.115.160.0/19, and 18.98.16.120/30 should be whitelisted for both directions
4. Consider using the alternative SIP endpoint
- Try using sip:sip.retellai.com;transport=tcp instead of the LiveKit endpoint
- This might resolve routing issues specific to the LiveKit domain
5. Review a similar community case
- A community member resolved a similar issue where calls weren't appearing in the dashboard by ensuring the SIP domain was resolved correctly (not pre-resolved to an IP address) [(2) ]()
- Ensure your FreePBX is sending the SIP domain name, not a resolved IP address
Alternative Approach: Dial to SIP URI Method
Since elastic SIP trunking continues to have issues, you might consider switching to the "Dial to SIP URI" method [(1) ]() :
1. Call the Register Phone Call API before each inbound call to obtain a call_id
2. Dial to sip:{call_id}@sip.retellai.com
3. This method gives you more control over the call setupAI Evy
11/26/2025, 11:15 PMAI Evy
11/26/2025, 11:15 PMAI Evy
11/27/2025, 12:44 AMtch
11/27/2025, 12:44 AMAI Evy
11/27/2025, 12:45 AMtypescript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444', // replace with the number you purchased
to_number: '+12137774445', // replace with the number you want to call
override_agent_id: 'agent_abc123',
}) ;AI Evy
11/27/2025, 12:45 AMAI Evy
11/27/2025, 12:45 AM