3cx ad Brekeke

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Romz
Posts: 4
Joined: Fri Jul 01, 2022 3:32 am

3cx ad Brekeke

Post by Romz »

1. Brekeke Product Name and Version: Brekeke SIP Server Advanced Version 3

2. Java version:

3. OS type and the version: linux Ubuntu 20

4. UA (phone), gateway or other hardware/software involved: MicroSIP

5. Your problem:

Hello All,

Has anyone ever successfully connected 3CX to Brekeke.

Firstly, I can successfully make calls to the numbers my SIP provider assigned me. Inbound calls.(From cellphone, dial pstn line -> extension/user on Brekeke SIP registered with softphone microsip )

I only have one rule:

Matching Patterns
$request = ^INVITE
Deploy Patterns
$auth = false

But I am unable to do vice-versa. What dial plan(rule 2) Can I use?

Secondly once that's configured
I will move on with 3Cx.
Romz
Posts: 4
Joined: Fri Jul 01, 2022 3:32 am

Post by Romz »

I have figured it out 8)

Thanks
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

I don't recommend you to disable the authentication for INVITE, what you did with DialPlan, if the SIP Server can be reached from the Internet.

I recommend you to check the remote IP address of 3CX/PSTN with $addr in DialPlan to avoid someone using your SIP Server freely.

https://docs.brekeke.com/sip/addr
Romz
Posts: 4
Joined: Fri Jul 01, 2022 3:32 am

Post by Romz »

Thank you for your recommendation.

Do you suggest:

Rule 1

Matching Patterns
$request = ^INVITE
$addr =3cx_IP

Deploy Patterns
$action = 400

Rule 2


Matching Patterns
$request = ^INVITE
$addr =PSTN_IP

Deploy Patterns
$action = 400
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

The DialPlan rules you wrote return "400 Bad Request" to the 3CX and the PSTN..

Try the rule below. This rule accepts an INVITE without the authentication if it is sent from 3CX or PSTN

Matching Patterns
$request = ^INVITE
$addr = ^3CX_IP$|^PSTN_IP$

Deploy Patterns
$auth = false
$continue = true

Replace 3CX_IP and PSTN_IP with their actual IP addresses .
For example
$addr = ^111.111.111.111$|^222.222.222.222$
Romz
Posts: 4
Joined: Fri Jul 01, 2022 3:32 am

Post by Romz »

Thank you so much for your help. :D
Post Reply