# Adding ProSBC as a SIP Trunk in the Brekeke PBX

## ntroduction

This document provides instructions on how to configure Brekeke PBX Server with the ProSBC as SIP trunk. Please visit the following link for more details about [Brekeke PBX documentation](https://www.brekeke.com/support/pbx_document.php)

## Brekeke PBX SIP Trunk Configuration

The Brekeke PBX includes the Brekeke SIP Server. The SIP server of the Brekeke PBX includes several dial plan rules. In order to establish the communication between ProSBC and the Brekeke PBX Server using the SIP protocol, you need to declare the necessary dial plan rules with their matching patterns.

1 - Go to SIP SERVER -> Dial Plan and click to New Rule button<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/e/e8/Brekeke_add_new_rule.png/600px-Brekeke_add_new_rule.png" alt=""><figcaption></figcaption></figure>

2 - Please create two new rules with the following criteria

A. FromProSBC`[Matching Patterns]$request = ^INVITE$addr = <ProSBC_IP_Address>To =` [`sip:(.+)@`](sip:\(.+\)@)`[Deploy Patterns]To =` [`sip:%1@`](sip:%1@)`$auth = false`\ <br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/8/8b/Brekeke_from_pro_sbc_rule.png/600px-Brekeke_from_pro_sbc_rule.png" alt=""><figcaption></figcaption></figure>

B. To ProSBC`[Matching Patterns]$request = ^INVITE$registered = falseTo =` [`sip:(.+)@`](sip:\(.+\)@)`[Deploy Patterns]$auth = falseTo =` [`sip:%1@`](sip:%1@)`<ProSBC_IP_Address>$transport = udp`<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/6/64/Brekeke_to_pro_sbc_rule.png/600px-Brekeke_to_pro_sbc_rule.png" alt=""><figcaption></figcaption></figure>

3 - PBX settings are used with their default values.<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/2/22/Brekeke_sip_options.png/600px-Brekeke_sip_options.png" alt=""><figcaption></figcaption></figure>

4 - You need to create a new ARS pattern for registered users to call out from ProSBC. Go to PBX -> ARS and click to New Route<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/b/be/Brekeke_add_ars.png/600px-Brekeke_add_ars.png" alt=""><figcaption></figcaption></figure>

5 - In the Route Template windows click to New button near to Patterns - OUT<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/8/8e/Brekeke_patterns_out.png/600px-Brekeke_patterns_out.png" alt=""><figcaption></figcaption></figure>

6 - Add the following parameters in the Matching patterns To and Deploy Patterns To<br>

<figure><img src="https://docs.telcobridges.com/w/images/thumb/d/d3/Brekeke_ars_pattern.png/600px-Brekeke_ars_pattern.png" alt=""><figcaption></figcaption></figure>


---

# 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/adding-prosbc-as-a-sip-trunk-in-the-brekeke-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.
