Author |
Message |
Romz Brekeke Newbie
Joined: 01 Jul 2022 Posts: 4
|
Posted: Fri Jul 01, 2022 3:52 am Post subject: 3cx ad Brekeke |
|
|
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 |
|
Romz Brekeke Newbie
Joined: 01 Jul 2022 Posts: 4
|
Posted: Sun Jul 03, 2022 6:30 am Post subject: |
|
|
I have figured it out
Thanks |
|
Back to top |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
Posted: Tue Jul 05, 2022 12:24 pm Post subject: |
|
|
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 |
|
Romz Brekeke Newbie
Joined: 01 Jul 2022 Posts: 4
|
Posted: Fri Jul 08, 2022 1:06 am Post subject: |
|
|
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 |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
Posted: Fri Jul 08, 2022 10:34 am Post subject: |
|
|
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 |
|
Romz Brekeke Newbie
Joined: 01 Jul 2022 Posts: 4
|
Posted: Mon Jul 25, 2022 4:44 am Post subject: |
|
|
Thank you so much for your help. |
|
Back to top |
|
|