Prerequisites
- A purchased Telnyx phone number. Buy one from the Telnyx Portal under Numbers > Phone Numbers if you don’t already have one.
- The Zero Runtime Inbound Gateway URL. In the Zero Runtime Dashboard, go to Telephony > Phone Numbers, click Add Number > Configure SIP, and open the Inbound tab to copy it (e.g.
xxxxxxxxxx.sip.videosdk.live).
Configuring Telnyx
1. Create an Outbound Voice Profile
- In the Telnyx Portal, go to Voice Suite > Outbound Voice and create a new outbound voice profile.
- Enter a Name and click Create.
- Under Allowed Destinations, select the regions you want to call (e.g. North America).
- Keep the defaults on the Configuration step and click Complete on the last step.
2. Create an FQDN SIP Connection
- Go to Voice Suite > SIP Trunking and click Create SIP Connection.
- Enter a Name, select FQDN as the type, and click Create.
3. Configure Authentication and Routing
- Under FQDNs, click Add FQDN and paste the Zero Runtime Inbound Gateway URL (port
5060). - Under Inbound calls routing:
- Set a SIP subdomain (e.g.
yourname.sip.telnyx.com). This is the outbound gateway address you use in Zero Runtime. - Set the Primary FQDN to the Zero Runtime gateway you just added.
- Set a SIP subdomain (e.g.
- Under Outbound calls authentication, select Credentials and set a Username and Password.
- Click Next. On the Configuration step, no changes are required. Click Next.
4. Inbound and Outbound Settings
- On the Inbound step, drag OPUS to the top of the Codecs list and click Next.
- On the Outbound step, select the Outbound voice profile you created in step 1 and click Next.
- On the Numbers step, assign your Telnyx number to the connection and click Complete.
Configuring Zero Runtime
1. Configure SIP
- In the Zero Runtime Dashboard, go to Telephony > Phone Numbers and click Add Number > Configure SIP.
- Enter a Name and your Telnyx Phone Number in E.164 format (e.g.
+14155552671). - On the Outbound tab:
- Set Outbound Gateway Address to your Telnyx SIP subdomain (e.g.
yourname.sip.telnyx.com). - Enter the same SIP Username and SIP Password you set in Telnyx.
- Set Outbound Gateway Address to your Telnyx SIP subdomain (e.g.
- Click Save & Activate.
2. Set Up a Routing Rule
- In the phone numbers list, click Configure Rule on your Telnyx number, then Create New Routing Rule.
- Enter a Routing Rule Name, select an API Key, and choose the Call Direction.
- Select your Telnyx number under Phone Numbers.
- Enter your Agent Name or ID, click Verify Agent ID, then click Create Rule.