Scenario: There is webrtc endpoint and sip trunk based on tls transport and dtls media. When incoming call /invite received from sip trunk and asterisk answers and forward call to webrtc endpoint using dial, throws error : “res_rtp_asterisk.c:3348 __rtp_recvfrom: DTLS failure occurred on RTP instance ‘0x7efc9c042eb0’ due to reason ‘bad signature’, terminating”.
Some calls patches successfully, audio works perfectly. I have tried all the configuration in the endpoint using dtls auto generate certificate yes or no both. Mentioned static certficate and all.
This is my last config:
[*************] ; webrtc endpoint
type=endpoint
transport=transport-wss
context=w-c2c-outgoing
disallow=all
allow=alaw
allow=ulaw
aors=*************
force_rport=yes
rtp_symmetric=yes
rewrite_contact=yes
direct_media=no
media_encryption=dtls
media_encryption_optimistic=false
send_pai=yes
send_rpid=yes
dtls_auto_generate_cert=no
dtls_cert_file=/opt/mis/cert/asterisk.pem
dtls_private_key=/opt/mis/cert/asterisk.pem
dtls_verify=fingerprint
dtls_setup=active
dtls_rekey=0
trust_id_inbound=true
trust_id_outbound=true
rtp_timeout=60
rtp_keepalive=30
rtp_timeout_hold=120
rtcp_mux=true
rtcp_mux=true
webrtc=true
[*************] ; sip trunk
type=endpoint
transport=transport-tls
context=mis-incoming
disallow=all
allow=alaw
allow=ulaw
aors=*************
force_rport=yes
rtp_symmetric=yes
rewrite_contact=yes
direct_media=no
media_encryption=dtls
media_encryption_optimistic=false
from_domain=*************
from_user=*************
send_pai=yes
send_rpid=yes
dtls_auto_generate_cert=no
dtls_cert_file=/opt/mis/cert/asterisk.pem
dtls_private_key=/opt/mis/cert/asterisk.pem
dtls_verify=fingerprint
dtls_setup=passive
dtls_rekey=0
trust_id_inbound=true
trust_id_outbound=true
rtp_timeout=60
rtp_keepalive=30
rtp_timeout_hold=120
rtcp_mux=true
timers=no
There is no problem in openssl version or config. Still coudn’t solved it. Help.