Set external_ssl_enable value to true in lowercase as shown below:
Click Save
Navigate to Status > SIP Status.
Click FLUSH CACHE at the top right.
Option 1: Using the Bridge App (Recommended)
Setup a Gateway
Login to your FusionPBX installation
Click Accounts -> Gateway
Click Add
Enter the following fields
Gateway Name: choice any name
Proxy: sip.api.openai.com:5061;tls
Register set to False
Click Save
Setup a Bridge
Setting up a Bridge will make the connection available from the different App in FusionPBX. This means that you can select it when setting up routing logic in FusionPBX.
Click Applications -> Bridge
Enter in the following fields
Name: choice any name
Action: Gateway
Gateways: Select the Gateway that you just created
Destination Number: This is your OpenAI Project ID
Click Save
Setup a Destination
Click Dialplan -> Destinations
Enter in the following information
Destination: Enter in the DID that you received from your carrier
Actions: Select the Bridge that you just created
Option 2: Connect Using External Profile Directly
Setup an Inbound Route
We will configure an Inbound route to bridge the call to OpenAI Real Time
Login to your FusionPBX installation
Click Dial Plan -> Destinations
Click Add
Enter your DID in the Destination field
Click Save
Click Dial Plan -> Inbound Routes
Click the Destination number that you just entered. It should look like this:
Add an action tag with a type of bridge with sofia/external/proj_htXkeMVNcVimD9CMKMjR08Xg@sip.api.openai.com:5061;transport=tls. Note the username portion should be replaced with your project id, which can be found in the OpenAI Dashboard.