# Configuration for Adding ProSBC as a SIP Trunk in the FreePBX Server

## Introduction

This document provides instructions on how to configure FreePBX Server with the ProSBC a s SIP trunk. Please visit the following link for more details about [Configuring SIP Trunks in FreePBX Server](https://wiki.freepbx.org/display/F2/Trunk+Sample+Configurations)

## FreePBX SIP Trunk Configuration

1\. After logging in as an Admin to your FreePBX GUI, navigate to “Connectivity” → “Trunks” and press the “Add Trunk” button. Select the option “Add SIP (chan\_pjsip) Trunk”<br>

<figure><img src="https://docs.telcobridges.com/w/images/1/15/FreePBX_Trunk_1.png" alt=""><figcaption></figcaption></figure>

2\. Once done, this will bring up the Trunk Creation Screen. Under the General tab, enter a name for the trunk. For ease of management, It is recommended that this match the name of the SIP Endpoint you created in the ProSBC WebGUI for FreePBX NAP.<br>

<figure><img src="https://docs.telcobridges.com/w/images/7/7e/FreePBX_Trunk_2.png" alt=""><figcaption></figcaption></figure>

3\. Once done, navigate to the “pjsip Settings" → "General” tab. Here you will need to enter your endpoint information. If you're using an IP endpoint,

* Select None for Authentication
* SIP Server: Enter the Domain of your SIP Trunk (ProSBC FQDN or IP address)
* SIP Server Port: Set this to 5060<br>

<figure><img src="https://docs.telcobridges.com/w/images/7/7e/FreePBX_Trunk_3.png" alt=""><figcaption></figcaption></figure>

4\. Once done, select the “PJSIP Settings” → “Codecs” Tab. Ensure correct codec are selected.<br>

<figure><img src="https://docs.telcobridges.com/w/images/7/77/FreePBX_Trunk_4.png" alt=""><figcaption></figcaption></figure>

## FreePBX Route Configuration

1\. To create an inbound route, navigate to “Connectivity” → “Inbound Routes” and click on "Add Inbound Route"<br>

<figure><img src="https://docs.telcobridges.com/w/images/d/d2/FreePBX_In_Route_1.png" alt=""><figcaption></figcaption></figure>

2\. Then set your options:

* Description: add a description of the route.
* DID Number: fill in the DID number that you will have from your ITSP
* Set Destination: choose Extensions from the first drop down and then select the extension you created from the second drop down

<figure><img src="https://docs.telcobridges.com/w/images/c/c5/FreePBX_In_Route_2.png" alt=""><figcaption></figcaption></figure>

Once done, “Submit” the configuration.

3\. To create an outbound route, navigate to “Connectivity” → “Outbound Routes” and click on "Add Outbound Route"<br>

<figure><img src="https://docs.telcobridges.com/w/images/a/af/FreePBX_Out_Route_1.png" alt=""><figcaption></figcaption></figure>

4\. Under the “Route Settings” tab, leave everything as the default except the following:

* Route Name: Add a friendly name for the route you are creating.
* Trunk Sequence for Matched Routes: Use the drop down button to select the SIP Trunk you just created.

<figure><img src="https://docs.telcobridges.com/w/images/4/43/FreePBX_Out_Route_2.png" alt=""><figcaption></figcaption></figure>

5\. Once done, select the “Dial Patterns” tab. You can manually define the dial patterns or use Dial Pattern wizard.<br>

<figure><img src="https://docs.telcobridges.com/w/images/c/c8/FreePBX_Out_Route_3.png" alt=""><figcaption></figcaption></figure>

6\. Once done, “Submit” the configuration and press the “Apply Config” button. The route is ready to be used and your FreePBX is now configured to with ProSBC.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://prosbcdocs.telcobridges.com/configuration-details/configuration-by-use-case/sip-trunking-configuration/configuration-for-adding-prosbc-as-a-sip-trunk-in-the-freepbx-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
