> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bring Your Own Carrier: Telnyx & Genesys Cloud

> Connect Telnyx phone numbers to Genesys Cloud over SIP trunking. Step-by-step setup for credentials, BYOC trunk, and inbound/outbound call routing.

This guide provides instructions and technical details for the configuration of SIP trunk connectivity between Genesys Cloud and Telnyx.

Before you get started you'll have to have the following set up:

1. Have created an account with Telnyx
2. Completed L2 verification
3. Purchased a number to be used for voice calls.

## Creating a SIP connection

In the Telnyx Mission Control Portal navigate to the "Voice” tab on the left side menu and select "SIP Trunking". Click on the “Add SIP Connection” button.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_1.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=4d31585849305a732d67c8b497ea8367" alt="Genesys Cloud & Telnyx SIP Set up" width="1600" height="496" data-path="img/genesys_1.png" />

*Creating a SIP Trunk in Mission Control*

Name your SIP connection to make it easy to find.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_2.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=fc95c0b26f6438e48a00b6ae73919c55" alt="Genesys Cloud & Telnyx Connection Type" width="1076" height="272" data-path="img/genesys_2.png" />

*Naming your connection*

Choose “FQDN” as the SIP connection type and provide SIP URI to your Genesys Cloud organization. The domain should match the region of your Genesys Cloud deployment. Click the “have FQDN” button to update the FQDN setting.

In the “Outbound” section of the SIP connection settings, choose “Credentials” and provider user name and a password to be used for a digest authentication. Click “Save & Finish Editing” button to save your SIP Connection.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_3.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=25d3f8c98e0191318f4b85ec12589c71" alt="Genesys Cloud & Telnyx FQDN Connections" width="984" height="1600" data-path="img/genesys_3.png" />

*Choosing a FQDN Connection type*

## Creating an Outbound Voice Profile

Navigate to the “Outbound Voice Profiles” tab in the "Voice" section. Click the “Add New Profile” button.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_4.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=a14c9d93c66a951dfcb6937d5e76fc54" alt="Genesys Cloud & Telnyx Outbound Voice Profile Setup" width="1600" height="554" data-path="img/genesys_4.png" />

*Setting up your outbound voice profile*

Provide a name for your new Outbound Voice Profile and click "Create".

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_5.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=f586c1bb2eef182d7c72ae5b00a84797" alt="Genesys Cloud & Telnyx Naming your OVP" width="1600" height="621" data-path="img/genesys_5.png" />

*Naming your Outbound Voice Profile*

When selecting traffic type choose “Conversational”.

You can also select individual countries or regions to be allowed for the voice calls. Once you have chosen where to allow calls to/ from click the “Save” button to confirm your configuration.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_6.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=e09ad1404d687d426eb3dce08b46967c" alt="Genesys Cloud & Telnyx OVP Settings" width="1600" height="1598" data-path="img/genesys_6.png" />

*Outbound Voice Profile settings*

Return to your SIP Connection and edit the configuration. Select “Outbound” tab and select your newly created Outbound Voice Profile from a dropdown list.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_7.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=f7e6d43093d07a296c35ebeae3a95f38" alt="Genesys Cloud & Telnyx SIP Connection Options" width="1076" height="1308" data-path="img/genesys_7.png" />

*Add your Outbound Voice Profile to your SIP Connection*

Next, switch to the “Inbound” tab of your SIP connection. Select the nearest “SIP Region” to your Genesys Cloud region. Adjust DNIS and ANI numbers
format to your Genesys Cloud configuration and save the updated configuration.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_8.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=8ab25ed16ca6a10c8d5b79b01fb10670" alt="Genesys Cloud & Telnyx SIP Connection Options" width="512" height="509" data-path="img/genesys_8.png" />

## Number configuration

On the left-side meny, select the “Numbers” section and navigate to
“My Numbers” tab. For your number purchased select a configured SIP Connection from a dropdown list.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_9.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=70214fe3c4a7b2eb0b927ae9c71c6539" alt="Genesys Cloud & Telnyx Number Configuration" width="512" height="261" data-path="img/genesys_9.png" />

*Navigating to My Numbers*

Note that you can assign the same SIP connection to multiple numbers.

## Configuration in Genesys Cloud

Follow the steps below to create a SIP connection to Genesys Cloud organization.

Before you get started you need to ensure that:

1. The BYOC option is enabled in your Genesys Cloud organization
2. You have admin rights to setup Trunks
3. You have a number purchased and added to "DID Numbers" and routed correctly (for example to the Architect flow)

For assistance, refer to Genesys Resource Center on <a href="https://help.mypurecloud.com">help.mypurecloud.com</a> for all details about Genesys Cloud configuration.

### Create a SIP Trunk

Go to the Admin options and select "Trunks". Provide a name for your SIP trunk and choose “BYOC Carrier” a SIP trunk type.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_10.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=2377498e1af9941a001dc17293c4292e" alt="Genesys Cloud & Telnyx Creating a SIP Trunk" width="512" height="342" data-path="img/genesys_10.png" />

*Creating a SIP Trunk in Genesys Cloud*

Select "Generic BYOC Carrier" as a subtype.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_11.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=bb18331d345896836189be3399e31984" alt="Genesys Cloud & Telnyx Selecting BYOC" width="512" height="325" data-path="img/genesys_11.png" />

*Select Generic BYOC Carrier*

Provide a name for your SIP Trunk and your Inbound SIP Termination Identifier. This name should match the one configured in the Telnyx SIP Connection for FQDN option.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_12.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=95409f4677cc23e36779182d95452b1a" alt="Genesys Cloud & Telnyx Name your connection" width="512" height="351" data-path="img/genesys_12.png" />

*Name your connection*

Provide Telnyx SIP interface URL in the “SIP Servers and Proxies” based on your chosen region like sip.telnyx.com, sip.telnyx.eu etc.

Enable “Digest Authentication” and provide in “Realm” field the same URL as used for SIP proxy.

Provide the “User Name” and “Password” which was configured in Telnyx SIP Connection . Setup “Caller ID” with a number purchased in Telnyx platform.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_13.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=cb00b7777021e4262a088e2e5fb0e099" alt="Genesys Cloud & Telnyx Settings" width="512" height="510" data-path="img/genesys_13.png" />

*Manage your connection settings*

In the “SIP Access Control” section, provide the IP addresses of your chosen Telnyx SIP endpoints (addresses are provided on sip.telnyx.com page)

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_14.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=291b1fb7b8dc6136986f0318ab951c76" alt="SIP Access Control" width="512" height="174" data-path="img/genesys_14.png" />

*Add SIP addresses*

Under the 'External Trunk Configuration' section expand the Protocol menu.

Scroll down to the 'Outbound' configuration and add a custom SIP header “X-Telnyx-Username” with the same value as set for a Digest Authentication

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_15.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=b2cba91669449b30d493aa3e7bddb619" alt="Genesys - Adding External Trunk Connections" width="512" height="137" data-path="img/genesys_15.png" />

*External Trunk Configuration*

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/gensys_16.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=36a0a47d03035f77e3273db8e93a033f" alt="Outbound Settings" width="512" height="175" data-path="img/gensys_16.png" />

*Outbound Trunk settings*

## Troubleshooting

Debugging tools are available in the Telnyx Mission Control Portal where you can troubleshoot any issues with your SIP trunk communication checking SIP call flows, QoS stats and communication to a defined webhooks.

To find and use the debugging tools:

1. Navigate to the “Debugging” menu under “Reporting” in the sidebar
2. Select “SIP Call Flow Tool” in the top bar
3. Specify your search criteria and press “Search CDRs” button
4. From the list of listed calls select a one with “Call Data Debugging” button.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_17.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=73ba97ef61fad5bf8a3484761c1a44d8" alt="Genesys Cloud & Telnyx Debugging" width="512" height="264" data-path="img/genesys_17.png" />

*Mission control debugging tools overview*

This enables you to review a SIP call flow with the detailed data for each SIP request.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_18.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=16e903f2c4fa9e3d601312e52e240c76" alt="Genesys Cloud & Telnyx Call flow debugging" width="512" height="271" data-path="img/genesys_18.png" />

*Call flow debugging*

You can also check "Session Info" on the next tab or export PCAP data on the "Export" tab for sharing with your team.

<img src="https://mintcdn.com/telnyx/4tBNWGoUCO9azKQ0/img/genesys_19.png?fit=max&auto=format&n=4tBNWGoUCO9azKQ0&q=85&s=06e570c4a3f843b56c8b9e9e9be43603" alt="Genesys Cloud & Telnyx PCAP inspection" width="512" height="184" data-path="img/genesys_19.png" />

*PCAP inspection*

If you need any assistance with your setup, reach out to a member of our support team through the chat in the Mission Control Portal.
