Hi,
i’m not exactly sure if i’ve compiled something wrong or there is a bug, because there where so much bugs around this thing in the last time.
i’m using asterisk 13.0.0 with pjproject from git and libsrtp.
libsrtp is compiled like this:
CFLAGS="-fPIC" ./configure --enable-pic
pjproject:
./configure --prefix=/usr --enable-shared --disable-video --disable-opencore-amr CFLAGS=-mtune=generic
asterisk:
./configure --with-crypto --with-ssl --with-srtp --prefix=/usr CFLAGS=-mtune=generic
My sip.conf
[general]
allowguest=no
port = 5060
bindaddr = 148.251.x.x
realm = xxx.net
qualify = no
videosupport = yes
disallow=all ; First disallow all codecs
allow=silk24
allow=silk16
allow=silk12
allow=silk8
allow=speex
allow=alaw
allow=ulaw ; Allow codecs in order of
allow=ilbc ; preference
allow=gsm
allow=h261
rtcachefriends=yes
maxexpiry=43200
dtmfmode = rfc2833
directmedia = no
nat=force_rport,comedia
transport=udp,ws,wss,tls
sipdebug=no
language=de
autoframing=yes
tlsenable=yes
tlsbindaddr=148.251.x.x
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
[sipml]
host=dynamic
secret=xxx
context=from-internet
host=dynamic
type=friend
encryption=yes
icesupport = yes
avpf=yes
force_avp=yes
directmedia=no
dtlsenable=yes
dtlsverify=no
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass
rtp.conf
[general]
rtpstart=10000
rtpend=20000
icesupport=true
now to the error, when i initiate a call through the sipml demo client i get the following:
== WebSocket connection from '88.217.x.x:50940' for protocol 'sip' accepted using version '13'
-- Registered SIP 'sipml' at 88.217.x.x:50940
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
-- Executing [1000@from-internet:1] Answer("SIP/sipml-00000003", "") in new stack
-- Executing [1000@from-internet:2] Playback("SIP/sipml-00000003", "demo-congrats") in new stack
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 006997, ts 000160, len 000160)
-- <SIP/sipml-00000003> Playing 'demo-congrats.gsm' (language 'de')
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 006998, ts 000320, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 006999, ts 000480, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007000, ts 000640, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007001, ts 000800, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007002, ts 000960, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007003, ts 001120, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007004, ts 001280, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007005, ts 001440, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007006, ts 001600, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007007, ts 001760, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007008, ts 001920, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007009, ts 002080, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007010, ts 002240, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007011, ts 002400, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007012, ts 002560, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007013, ts 002720, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007014, ts 002880, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007015, ts 003040, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007016, ts 003200, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007017, ts 003360, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007018, ts 003520, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007019, ts 003680, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007020, ts 003840, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007021, ts 004000, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007022, ts 004160, len 000160)
Sent RTP packet to 88.217.x.x:50681 (via ICE) (type 08, seq 007023, ts 004320, len 000160)
[Nov 18 08:30:29] ERROR[23551][C-00000006]: res_rtp_asterisk.c:2040 __rtp_recvfrom: DTLS failure occurred on RTP instance '0x7f1d00002578' due to reason '(null)', terminating
[Nov 18 08:30:29] WARNING[23551][C-00000006]: res_rtp_asterisk.c:4245 ast_rtp_read: RTP Read error: Unspecified. Hanging up.
[Nov 18 08:30:29] WARNING[23551][C-00000006]: app_playback.c:493 playback_exec: Playback failed on SIP/sipml-00000003 for demo-congrats
secure calling is functioning at all, i’m using blink with tls and srtp
is there something else i can provide?
hope someone can help
thanks and regards