https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> Im using Telynx, need the c...
# ❓・ai-evy-support
j
@AI Evy Im using Telynx, need the configuration info for SIP trunking
a
Thanks for tagging me @jj.b. I'll look through relevant sources and get back to you shortly.
### Answer Here's the complete Telnyx SIP trunking configuration for Retell AI: ## 1. Create Elastic SIP Trunking in Telnyx [(1) ]() **Create the trunk**: Select FQDN as the type and give it a name **Add FQDN**: Add
5t4n6j0wnrl.sip.livekit.cloud
as the FQDN of Retell's SIP server . Select
SRV
as the DNS record type **Setup Outbound Calls Authentication**: Select credentials as the authentication method, and add the username and password . You'll need these credentials when importing the number to Retell Setup Inbound Setting : - Select
+E.164
as the number format - Select
G722
,
G729
,
OPUS
as the codec - Select
TCP
as the transport method (UDP temporarily not supported due to a connectivity issue) - Select your SIP region **Setup Outbound Setting**: Create a new outbound voice profile and select that in the outbound setting ## 2. Move Numbers to Elastic SIP Trunking Purchase numbers or move existing numbers to this trunk ## 3. Import Numbers to Retell Supply Telnyx's FQDN as the termination SIP URI . You can find your FQDN based on your choice of SIP region in [this doc]() . You'll also need to supply the username and password you set up earlier in the outbound authentication You can import numbers programmatically via the Import Number API [(2) ]() :
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: '+14157774444',
 termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Once imported, the number will show up in your dashboard and you can make phone calls directly from the Dashboard [(1) ]() . You can also use the Create Phone Call API to create calls programmatically
​ To learn more, see the sources I considered: [[1] Telnyx](https://docs.retellai.com/deploy/telnyx) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I just need this number to be forwarded to after a client misses a call, so this will work for that and the agent will be through this number after connection?
a
Thanks for the follow-up, @jj.b. I'll get back to you soon.
### Answer Yes, this setup will work for your use case. Once you import your Telnyx number using elastic SIP trunking, it will function as a regular Retell AI phone number [(1) ]() . When calls are made to this imported number, the Retell agent will answer and handle the conversation [(2) ]() . For your specific scenario where clients miss calls and you want to forward them to this agent: 1. **The imported number becomes fully functional**: When you import a phone number from custom telephony using elastic SIP trunking, all telephony functionalities supported by Retell numbers will also be supported, assuming your telephony provider supports it [(1) ]() 2. **Agent handles inbound calls**: You can bind an inbound agent to the imported number, so when someone calls that number, the agent will automatically answer [(2) ]() 3. **Transfer capability available**: If needed, you can configure the agent to transfer calls to humans using the transfer call feature, which works with imported numbers [(3) ]() The elastic SIP trunking method is the recommended approach for integrating with custom telephony providers like Telnyx [(1) ]() . Once configured, your imported Telnyx number will behave just like any other Retell number in terms of agent functionality.
​ To learn more, see the sources I considered: [[1] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[2] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[3] Transfer call](https://docs.retellai.com/build/single-multi-prompt/transfer-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.