Pjsip transport tls

Hi all

I upgrade asterisk to 18.3.0 from 13.
I have a problem with tls transport.

My pjsip.conf :

[global]
type=global
keep_alive_interval=20

[system]
type=system
timer_t1=100
timer_b=6400

[transUDP]
type=transport
protocol=udp
bind=0.0.0.0:5060

[transTCP]
type=transport
protocol=tcp
bind=0.0.0.0:5062

[transTLS]
type=transport
protocol=tls
bind=0.0.0.0:5061

I have this error :

Jun 15 17:35:00] ERROR[1923]: res_pjsip/config_transport.c:848 transport_apply: Transport 'transTLS' could not be started: Unknown error -1
[Jun 15 17:35:00] ERROR[1923]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type 'transport' with id 'transTLS' from configuration file 'pjsip.conf'

CAn you help me?

Thx a lot

You need a certificate and certificate authority for TLS. In the configuration provided you don’t have any.

In version 13 , certificates was not mandatory for tls transport.
The two certificates are mandatory in version 18 ?

For TLS they’ve always been mandatory as far as I know…

Hi
i tryed to create tranport tls with the same conf on asterisk 18 and linux X64.
Transport tls is create without problem
I guess the problem is during compilation with yocto.
Do you know how i can check if tls is enable for pjsip ?
Thx

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.