# Configuring a Hosted PBX

## Introduction

ProSBC Hosted PBX Example Configuration provides you with a step-by-step Hosted PBX Configuration of ProSBC systems, using the Web Portal configuration tool. Complete general installation configuration steps, before you begin configuring your specific scenario.

## Hosted PBX Example

<figure><img src="https://docs.telcobridges.com/w/images/8/8b/Hosted_PBX_topo_1.png" alt=""><figcaption></figcaption></figure>

### Prerequisites

ProSBC devices must be installed as described in their respective installation guides.

## IP Network Configuration

### Virtual Port Configuration for Wide Area Network

1\. Select IP Interfaces from the navigation panel<br>

<figure><img src="https://docs.telcobridges.com/w/images/f/f4/Create_Voip_Interface_Tsbc_0.png" alt=""><figcaption></figcaption></figure>

2\. Click the Virtual Ports tab.

* Click Create New Virtual Port<br>

<figure><img src="https://docs.telcobridges.com/w/images/f/f6/SIP_Trunking_VP_Create.png" alt=""><figcaption></figcaption></figure>

3\. Configure the virtual port.

* Enter a name for the virtual port
* Select the host(s) to which the virtual port is assigned
* Select a physical port to which the virtual port is assigned
* Click Create

<figure><img src="https://docs.telcobridges.com/w/images/b/b0/SIP_Trunking_VP_WAN.png" alt=""><figcaption></figcaption></figure>

4\. Create a VLAN that uses this virtual port

* Click Create new Host VLAN

<figure><img src="https://docs.telcobridges.com/w/images/8/8b/SIP_Trunking_Vlan_WAN.png" alt=""><figcaption></figcaption></figure>

5\. Configure the new VLAN

* Enter a name for the VLAN
* If the port is to be used untagged, make sure Untagged is checked.
* If the port is to be used with a 802.1Q tag, uncheck Untagged and enter a VLAN ID.
* Click Create

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

OR

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

### Virtual Port Configuration for Local Area Network

1\. Select IP Interfaces from the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/f/f4/Create_Voip_Interface_Tsbc_0.png" alt=""><figcaption></figcaption></figure>

2\. 2. Click the Virtual Ports tab.

* Click Create New Virtual Port

<figure><img src="https://docs.telcobridges.com/w/images/9/90/SIP_Trunking_VP_Create_LAN.png" alt=""><figcaption></figcaption></figure>

3\. Configure the virtual port.

* Enter a name for the virtual port
* Select the host(s) to which the virtual port is assigned
* Select a physical port to which the virtual port is assigned
* Click Create

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

4\. Create a VLAN that uses this virtual port

* Click Create new Host VLAN

<figure><img src="https://docs.telcobridges.com/w/images/9/9f/SIP_Trunking_Vlan_LAN.png" alt=""><figcaption></figcaption></figure>

5\. Configure the new VLAN

* Enter a name for the VLAN
* If the port is to be used untagged, make sure Untagged is checked.
* If the port is to be used with a 802.1Q tag, uncheck Untagged and enter a VLAN ID.
* Click Create

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

OR

<figure><img src="https://docs.telcobridges.com/w/images/9/94/SIP_Trunking_Vlan_LAN_Interface_2.png" alt=""><figcaption></figcaption></figure>

### Configuring IP Interface for Wide Area Network

1\. Select IP Interfaces from the navigation panel:<br>

<figure><img src="https://docs.telcobridges.com/w/images/9/90/Create_IP_Interface_Tsbc_0.png" alt=""><figcaption></figcaption></figure>

2\. Click the IP Interfaces tab.

* Click Create New IP Interface

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

3\. Configure the IP interface:

* Enter a name for the interface
* Select 1 or more services to use for the IP interface (RTP and SIP).
* Select the Host VLAN from which IP packets will exit.
* Indicate whether or not to use DHCP to automatically get an IP address for this port. (selecting this option removes the need to enter and IP address, Netmask, and Gateway)
* Enter an IP address
* Enter a Netmask
* Enter a gateway address
* Click Save<br>

<figure><img src="https://docs.telcobridges.com/w/images/f/fe/Create_IPif_WAN_1.png" alt=""><figcaption></figcaption></figure>

### Configuring IP Interface for Local Area Network

1\. Select IP Interfaces from the navigation panel:<br>

<figure><img src="https://docs.telcobridges.com/w/images/9/90/Create_IP_Interface_Tsbc_0.png" alt=""><figcaption></figcaption></figure>

2\. Click the IP Interfaces tab.

* Click Create New IP Interface

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

3\. Configure the IP interface:

* Enter a name for the interface
* Select 1 or more services to use for the IP interface (RTP and SIP).
* Select the Host VLAN from which IP packets will exit.
* Indicate whether or not to use DHCP to automatically get an IP address for this port. (selecting this option removes the need to enter and IP address, Netmask, and Gateway)
* Enter an IP address
* Enter a Netmask
* Enter a gateway address
* Click Save

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

## SIP Stack Configuration

You must configure SIP signaling for your system. The first step in doing so is to create a SIP stack:

1- Click SIP in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/5/58/SIP_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New Sip

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

3- Create the new SIP stack:

* Verify that the box labeled Enabled is checked
* Enter a name for the stack
* Click Create

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

### SIP Transport Server Configuration for Wide Area Network

1- Click SIP in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/5/58/SIP_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Select a SIP stack for which you wish to create a transport server

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

3- Click Create New Transport Server

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

\
4- Create the new SIP transport server:

* Enter a name for the server
* Select an appropriate port type
* Select an appropriate host IP interface
* Click Create

<figure><img src="https://docs.telcobridges.com/w/images/0/07/WAN_SIP_TransportServer1.png" alt=""><figcaption></figcaption></figure>

### SIP Transport Server Configuration for Local Area Network

1- Click SIP in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/5/58/SIP_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Select a SIP stack for which you wish to create a transport server

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

3- Click Create New Transport Server

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

\
4- Create the new SIP transport server:

* Enter a name for the server
* Select an appropriate port type
* Select an appropriate host IP interface
* Click Create

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

## SIP NAP

A Network Access Point or NAP represents the entry point to another network or destination peer (e.g. SIP proxy, SIP trunk, etc)

### SIP NAP Configuration for Wide Area Network

To create a new NAP:

1- Click NAPs in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/3/38/NAP_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New NAP

<figure><img src="https://docs.telcobridges.com/w/images/2/26/Create_New_NAP_SIP.png" alt=""><figcaption></figcaption></figure>

\
3- Create the new NAP:

* Enter a name for the NAP
* Click Create

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

4- Verify that the NAP was successfully created message appears

<figure><img src="https://docs.telcobridges.com/w/images/f/f0/Create_New_NAP_SIP2.png" alt=""><figcaption></figcaption></figure>

5- Associate a SIP transport server with the new NAP:

* Select a SIP Transport Server from the Available list
* Click "<<" to associate the WAN\_SIP\_TS with the NAP

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

6- Disable proxy address:

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

\
7- Enter full access in the access control list

* Enter an IP/MASK (use 0.0.0.0/0 to accept any addresses)
* Click "<<" to add in the list of Access Control

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

8- Associate a Port range with the new NAP:

* Select a port range from the Available list
* Click "<<" to associate WAN\_Vlan:0 Port range with the NAP

<figure><img src="https://docs.telcobridges.com/w/images/8/80/Open_NAP_Create_2.png" alt=""><figcaption></figcaption></figure>

9 - Configure settings for the following parameter groups as required:

* Check Accept only authorized users option. With this option unchecked, ProSBC will forward any INVITEs sent to the "Open NAP" to the PBX without first authenticating the user.
* Registration Parameters
* Authentication Parameters
* Network Address Translation
* SIP-I Parameters
* Advanced Parameters
* Click Save

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

### SIP NAP Configuration for Local Area Network

To create a new NAP:

1- Click NAPs in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/3/38/NAP_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New NAP

<figure><img src="https://docs.telcobridges.com/w/images/2/26/Create_New_NAP_SIP.png" alt=""><figcaption></figcaption></figure>

\
3- Create the new NAP:

* Enter a name for the NAP
* Click Create

<figure><img src="https://docs.telcobridges.com/w/images/b/b4/SIP_Server_NAP_Create.png" alt=""><figcaption></figcaption></figure>

\
4- Verify that the NAP was successfully created message appears

<figure><img src="https://docs.telcobridges.com/w/images/f/f0/Create_New_NAP_SIP2.png" alt=""><figcaption></figcaption></figure>

5- Associate a SIP transport server with the new NAP:

* Select a SIP Transport Server from the Available list
* Click "<<" to associate the LAN\_SIP\_TS with the NAP

<figure><img src="https://docs.telcobridges.com/w/images/3/33/SIP_Server_NAP_Create_1.png" alt=""><figcaption></figcaption></figure>

6- Enter SIP Server proxy address:

<figure><img src="https://docs.telcobridges.com/w/images/6/65/SIP_Server_NAP_Create_2.png" alt=""><figcaption></figcaption></figure>

7- Associate a Port range with the new NAP:

* Select a port range from the Available list
* Click "<<" to associate LAN\_Vlan:0 Port range with the NAP

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

9- Configure settings for the following parameter groups as required:

* Registration Parameters
* Authentication Parameters
* Network Address Translation
* SIP-I Parameters
* Advanced Parameters
* Click Save

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

### Access Control List

ProSBC will automatically create Access Control List for each NAP you created.

<figure><img src="https://docs.telcobridges.com/w/images/9/9f/Remote_Workers_Access_Control_List_1.png" alt=""><figcaption></figcaption></figure>

If you double-click one of the created ACL, you will see ProSBC only accept the calls if the source IP matches. In this sample; the calls from 192.168.1.10 will be accepted only.

<figure><img src="https://docs.telcobridges.com/w/images/6/60/SIP_Access_Control_List_2.png" alt=""><figcaption></figcaption></figure>

## SIP DOMAIN

A SIP domain represents a grouping of devices (or users) that can communicate with one another. You must configure SIP Registration Domain for your system. The first step in doing so is to create a SIP Domain:

### Create New SIP Registration Domain

1- Click SIP Domain in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/b/bd/SIP_Domain_NavigationMenu.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New Domain

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

\
3- Create the new Domain:

* Enter a configuration Name for this domain.
* Enter a Domain Name for the SIP Registration Domain (the domain can be an FQDN or an IP address)
* Set the number Maximum Registered Users for this domain
* Set the Expires value used by SBC when the remote device doesn't supply one ( Default Contact Expire)
* Select Routing Method the system will use to route calls to registered users (if enabled in routing scripts).
  * Register source: Sends SIP Invite to the registering source IP address.
  * Contact: Sends SIP Invite to the 'contact' from the Register message.
* Set the Default Contact Expiration, this value will be used when no *Expires* value is supplied by the user agent.
* Set the Minimum Contact Expiration, this is the minimum *Expires* value that can be supplied by a user agent. Lower values will be rejected with a 423 'Interval too brief' response.
* Set the Maximum Contact Expiration, this is the maximum *Expires* value that can be supplied by a user agent. The higher value is replaced by this parameter.
* Forwarding Parameters:
  * Select the Registration Forwarding Mode to the registrar:
    * Contact Remapping: Changes the user and the IP address.
    * Contact Passthrough: Doesn't change anything. Enables devices to be contacted directly without going through the SBC.
  * Set Minimum Registrar Expiration, this is the minimum *Expires* value sent by the SBC to the registrar. If a user agent's 'Expires' value is greater than this parameter, the SBC will do rate adaptation between the user agent and the Registrar.
  * Set Maximum Pending Register Forward, the maximum number of simultaneous pending register requests allowed for this domain. New REGISTER request is being refused passed this threshold.
  * Set Maximum Simultaneous Register Forward, the maximum number of simultaneous active register requests allowed for this domain. New REGISTER request is being refused passed this threshold.
* Click Create

<figure><img src="https://docs.telcobridges.com/w/images/0/06/Register_domain_1.png" alt=""><figcaption></figcaption></figure>

\
4- Verify that the Sip registration domain was successfully created message appears

<figure><img src="https://docs.telcobridges.com/w/images/8/8f/Register_domain_2.png" alt=""><figcaption></figcaption></figure>

5- If your registrar has multiple domains, you need to create all the domains one by one.

### Create New SIP Registration Registrar

A SIP registrar represents a SIP endpoint that provides a location service. You must configure SIP Registrar for your system. The first step in doing so is to select your SIP Domain:

<br>

1- Click on your domain in the SIP Domain List

<figure><img src="https://docs.telcobridges.com/w/images/2/2f/SIP_Domain_Select.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New SIP Registration Registrar

<figure><img src="https://docs.telcobridges.com/w/images/9/90/New_SIP_Registrar_Create.png" alt=""><figcaption></figcaption></figure>

\
3- Create the new SIP Registration Registrar

* Enter a Name for the SIP Registration Registrar
* Select pre defined SIP Proxy NAP from drop-down menu
* Click Create

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

\
4- Verify that the Sip registration registrar was successfully created message appears

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

### Associate a SIP Domain with the new NAP

Associate a SIP Domain with the new NAP. If you have more then 1 registrar domain using the same registrar you can associate all of them with the NAP:

* Select a sip domain from the Available list
* Click "<<" to associate the SIP Domain with the NAP

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

<br>

## Call Route

You must set up call routing for your system. [Call routing](/appendices/appendix-a-glossary/glossary-call-routing.md) refers to the ability to route calls based on criteria such as origin, destination, time of day, service provider rates, and more.

### Route Configuration for Remote Phones to SIP Server

1- Click Routes in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/b/b0/CreateCallRoute_0.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New Static Route

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

\
3- Create the new route:

* Enter a RoutesetName for the route
* Select SIP\_REMOTE, to match calls from Trunk NAP
* Select SIP\_SERVER\_NAP
* Click Create

<figure><img src="https://docs.telcobridges.com/w/images/3/39/Route_Remote_to_Server.png" alt=""><figcaption></figcaption></figure>

\
4- Verify that the " Route was successfully created" message appears and that the new route is listed in the Routeset list

<figure><img src="https://docs.telcobridges.com/w/images/6/64/Route_Remote_to_Server_1.png" alt=""><figcaption></figcaption></figure>

### Route Configuration for SIP Server to Remote Phones

1- Click Routes in the navigation panel

<figure><img src="https://docs.telcobridges.com/w/images/b/b0/CreateCallRoute_0.png" alt=""><figcaption></figcaption></figure>

\
2- Click Create New Static Route

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

\
3- Create the new route:

* Enter a RoutesetName for the route
* Select SIP\_SERVER\_NAP, to match calls from Trunk NAP
* Select (By registered user)
* Click Create

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

\
4- Verify that the " Route was successfully created" message appears and that the new route is listed in the Routeset list

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

## Activating the Configuration

Changes made to the configuration of the ProSBC units are stored in the OAM\&P Configuration and Logging database. In order for changes to be used by the system, they must first be activated. This is done at the system level and accessed from the Navigation panel.

Check the following link for activating the configuration;

[Toolpack:Activating\_the\_Configuration\_D](/configuration-details/configuration-by-web-portal-category/system-settings/activating-the-configuration.md)

## Adding NAT for RTP problems

If you are having RTP problems after the configuration you need to check the NAT setting. Please check the link for [NAT](/configuration-details/configuration-by-web-portal-category/ip-network-settings/configuring-nat-traversal.md)

## SBC Use Cases

* [ProSBC Use Cases](/use-cases/applications.md)
* [Multiple Domains/PBXs scenario](/configuration-details/configuration-by-use-case/multiple-domains-hosted-pbxs.md)

## SBC Tutorial Guide V3.0

[Version 3.0](/configuration-details/configuration-by-web-portal-category.md)


---

# 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/configuring-a-hosted-pbx.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.
