DTLS failure occurred, wrong certificate type

Hello

I am getting following error when I make INVITE through webrtc

[Jun 28 08:30:01] ERROR[28760][C-00000003]: res_rtp_asterisk.c:3166 __rtp_recvfrom: DTLS failure occurred on RTP instance '0x7f348c052d30' due to reason 'wrong certificate type', terminating
[Jun 28 08:30:01] WARNING[28760][C-00000003]: res_rtp_asterisk.c:7700 ast_rtp_read: RTP Read error: Unspecified.  Hanging up.

My pjsip.conf is something like this

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0

[transport-ws]
type=transport
protocol=ws
bind=0.0.0.0


[webrtc_client]
type=aor
max_contacts=5
remove_existing=yes

[webrtc_client]
type=auth
auth_type=userpass
username=webrtc_client
password=password

[webrtc_client]
type=endpoint
aors=webrtc_client
auth=webrtc_client
dtls_auto_generate_cert=yes
webrtc=yes
context=default
disallow=all
allow=opus,ulaw
dtmf_mode=rfc4733

I see some related topics but not completely solving this case. I have followed the webrtc guide in asterisk wiki for configuration. What am I missing here?

If I’m not mistaken, you must add these settings to your endpoints:

use_avpf=yes
rtcp_mux=yes
ice_support=yes
media_encryption=dtls```

I think webrtc=yes sets most or all of those:

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