Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
SIP over TLS failing on inbound calls
Author Message
ecimin
Brekeke Junior Member


Joined: 17 Jan 2018
Posts: 5
Location: USA

PostPosted: Wed Mar 06, 2019 3:18 pm    Post subject: SIP over TLS failing on inbound calls Reply with quote

1. Brekeke Product Name and Version: Brekeke PBX

2. Java version:Latest version

3. OS type and the version: Windows 10 Pro

4. UA (phone), gateway or other hardware/software involved: various SIP devices (Aastra, Grandstream etc)

5. Your problem: Problems getting SIP over TLS to work on inbound DID calls.

I am having a general issue getting inbound DID calls to complete via the Brekeke PBX when using SIP over TLS.

Below is my setup

SIP trunk to Voip Provider -----Brekeke PBX -----SIP device

Between my VOIP provider and the Brekeke PBX, I am using UDP.

Between the Brekeke PBX and the SIP device, I am using TLS.

When I place an inbound call to my DID 1212XXXXXXX, I am getting a SIP 603 Declined response back from the Brekeke PBX.

Below is my inbound rule

Matching Patterns
$request = ^INVITE
To = sip:(1212XXXXXXX)@
$transport = ^UDP


Deploy Patterns
$transport = TLS
To = sip:%1@216.xxx.xxx.xxx (my Brekeke Server)

$target - 216.xxx.xxx.xxx (my SIP device)

I have TLS-handling enabled on the Brekeke SIP server and the Request Client Certificate is set to OFF.

I have the JKS file type uploaded to the Brekeke server. TLS is enabled on my SIP device. Under Status / SIP server, I see TLS in the transport field.

My outbound SIP over TLS calls complete well with no issues (confirmed using Wireshark).

My inbound calls just fail to SIP 603 Declined.

If I change the transport to UDP instead on the Brekeke server and on the SIP device, the inbound DID calls complete with no issues.

Any suggestions on how to get inbound TLS calls would be appreciated.
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Wed Mar 06, 2019 6:38 pm    Post subject: Reply with quote

> $target = 216.xxx.xxx.xxx

If your SIP device doesn't have own TLS certificate, $target= will not work with TLS because the SIP Server can not authenticate the SIP device. It is what TLS standard is designed.

If your SIP device is already registered in Brekeke SIP Server over TLS, you can use the same TLS connection to reach back to the SIP device.

Modify DialPlan rule's Deploy Patterns like this.
Deploy Patterns
To = sip:%1@

With the above Deploy Patterns, the SIP Server forwards an INVITE to the SIP device over the same transport connection what SIP device used for REGISTER.
Back to top
View user's profile
ecimin
Brekeke Junior Member


Joined: 17 Jan 2018
Posts: 5
Location: USA

PostPosted: Thu Mar 07, 2019 3:59 pm    Post subject: Reply with quote

Thanks James. This setup worked well for inbound TLS calls.
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