https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i route calls from freepbx to retellai
# ❓・ai-evy-support
s
@AI Evy how can i route calls from freepbx to retellai ?
a
Thanks for tagging me @Suli_. I'll look through relevant sources and get back to you shortly.
a
Yo dude whats up
a
### Answer To route calls from FreePBX to Retell AI, you'll configure FreePBX to send calls to Retell's SIP server using SIP trunking [(1) ]() . Retell SIP Server Details: - SIP server URI:
sip:sip.retellai.com
- IP block for traffic:
18.98.16.120/30
(All regions) ,
143.223.88.0/21
(certain United States traffic) ,
161.115.160.0/19
(certain United States traffic) Transport methods supported: - TCP (Recommended) - UDP - TLS For different transport methods, append the transport parameter to the SIP server URL: - TCP:
sip:sip.retellai.com;transport=tcp
- UDP:
sip:sip.retellai.com;transport=udp
- TLS:
sip:sip.retellai.com;transport=tls
Setup Steps: 1. In FreePBX, create a SIP trunk pointing to
sip.retellai.com
with your chosen transport method 2. Whitelist Retell's IP ranges in your FreePBX firewall to allow traffic from the IP blocks listed above 3. In Retell AI, call the Register Phone Call API to get a
call_id
4. Configure FreePBX to dial calls to the SIP URI:
sip:{call_id}@sip.retellai.com
You must dial the call to the SIP URI within 5 minutes of calling Register Phone Call . If the call isn't connected within that window, it disconnects with
registered_call_timeout
. Media encryption supported: - SRTP (Transport should be set to TLS to use SRTP)
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Hello what you want to know
s
@AK i can send calls from retellai to freepbx, but i cant receive calls
a
@Suli_ What type of call if you can explain maybe i can help
s
looking to receive incoming calls and transfers from internal extentions