Hello,
I’m working on a lab project, to make call using SIPML5 and Asterisk.
I have implement, TLS for SIP and SRTP for data. Everything works fine with my softphone.
But I tried to make audio/video calls between browser (Chrome and FF) which only support right now DTLS-SRTP.
This is the conf of one of my user.
;; Configuration générale
[6002];
context=work;
type=friend;
host=dynamic;
secret=password;
callerid=6002 <6002>;
disallow=all ;
allow=alaw ;
allow=ulaw ;
icesupport=yes
directmedia=no
transport=udp,wss,ws;
avpf=yes;
encryption=yes;
videosupport=yes
dtlsenable=yes
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
Now I have this error in the asterisk console, when i tried to make a call.
*CLI> [Jul 21 11:44:43] ERROR[11006][C-00000001]: res_rtp_asterisk.c:934 ast_rtp_dtls_set_configuration: Specified certificate file ‘/etc/asterisk/keys/asterisk.pem’ for RTP instance ‘0x7fd460039338’ could not be used
[Jul 21 11:44:43] ERROR[11006][C-00000001]: chan_sip.c:5858 dialog_initialize_dtls_srtp: Attempted to set an invalid DTLS-SRTP configuration on RTP instance ‘0x7fd460039338’
[Jul 21 11:44:43] NOTICE[11006][C-00000001]: chan_sip.c:25679 handle_request_invite: Failed to authenticate device "6001"sip:6001@192.99.185.181;tag=nmwFc9oTJJIO1iEfWgqK
I can’t find anything to help me on internet. Maybe you could help me understand this issue ?
Thank you,