# VitalPBX SIP Trunk Creation

## Introduction

This document provides instructions on how to add a SIP Trunk to VitalPBX Server to work with the ProSBC. Please visit the following link for more details about [Creating a SIP Trunk in VitalPBX Server](https://wiki.vitalpbx.org/documentation/vitalpbx-manual/pbx/external/trunks/)

## VitalPBX SIP Trunk Configuration

1\. Login into the administration portal via the IP address of the machine that is running VitalPBX.

2\. Select the PBX tab at the top left and then from the drop-down menu click External -> Trunks.\ <br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/6/60/Vitalpbx_trunk_1.png/500px-Vitalpbx_trunk_1.png" alt=""><figcaption></figcaption></figure>

3\. Select the SIP<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/6/68/Vitalpbx_trunk_2.png/500px-Vitalpbx_trunk_2.png" alt=""><figcaption></figcaption></figure>

4\. As shown below image there are very few fields to configure. We will explain the fields that need to configure the trunk.

<figure><img src="https://docs.telcobridges.com/w/images/thumb/6/6f/Vitalpbx_trunk_3.png/800px-Vitalpbx_trunk_3.png" alt=""><figcaption></figcaption></figure>

* Description Short description to identify this trunk
* Remote Host Address for all SIP communications (inbound and outbound). ProSBC FQDN/IP Address must be entered in this area.
* Remote Port Destination SIP Port. It must be the same as the ProSBC Transport Server port.

5\. We need to create an outbound route for this new trunk. Select the PBX tab at the top left and then from the drop-down menu click External -> Outbound Routes.<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/4/4f/Vitalpbx_trunk_4.png/500px-Vitalpbx_trunk_4.png" alt=""><figcaption></figcaption></figure>

6\. Enter the Outbound Route details

<figure><img src="https://docs.telcobridges.com/w/images/thumb/0/0e/Vitalpbx_trunk_5.png/500px-Vitalpbx_trunk_5.png" alt=""><figcaption></figcaption></figure>

* Description Short description to identify this outbound route
* Trunks Select the SIP Trunk created for ProSBC
* Dial Patterns Add the Dial Patterns to use this Outbound Route

7\. We need to create an inbound route for this new trunk. Select the PBX tab at the top left and then from the drop-down menu click External -> Inbound Routes.

<figure><img src="https://docs.telcobridges.com/w/images/thumb/2/2b/Vitalpbx_trunk_6.png/500px-Vitalpbx_trunk_6.png" alt=""><figcaption></figcaption></figure>

8\. Enter the Inbound Route details

<figure><img src="https://docs.telcobridges.com/w/images/thumb/b/b7/Vitalpbx_trunk_7.png/500px-Vitalpbx_trunk_7.png" alt=""><figcaption></figcaption></figure>

* Description Short description to identify this inbound route
* DID Pattern If you have DIDs coming with the trunk please enter the DID pattern
* Inbound Destination Select where to send incoming calls from the DID<br>


---

# 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/vitalpbx-sip-trunk-creation.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.
