Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
3cx ad Brekeke
Author Message
Romz
Brekeke Newbie


Joined: 01 Jul 2022
Posts: 4

PostPosted: Fri Jul 01, 2022 3:52 am    Post subject: 3cx ad Brekeke Reply with quote

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.
Back to top
View user's profile
Romz
Brekeke Newbie


Joined: 01 Jul 2022
Posts: 4

PostPosted: Sun Jul 03, 2022 6:30 am    Post subject: Reply with quote

I have figured it out Cool

Thanks
Back to top
View user's profile
Tata
Brekeke Master Guru


Joined: 27 Jan 2008
Posts: 223

PostPosted: Tue Jul 05, 2022 12:24 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Romz
Brekeke Newbie


Joined: 01 Jul 2022
Posts: 4

PostPosted: Fri Jul 08, 2022 1:06 am    Post subject: Reply with quote

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
Back to top
View user's profile
Tata
Brekeke Master Guru


Joined: 27 Jan 2008
Posts: 223

PostPosted: Fri Jul 08, 2022 10:34 am    Post subject: Reply with quote

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$
Back to top
View user's profile
Romz
Brekeke Newbie


Joined: 01 Jul 2022
Posts: 4

PostPosted: Mon Jul 25, 2022 4:44 am    Post subject: Reply with quote

Thank you so much for your help. Very Happy
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1