Hello there,
we’ve just tried our fist webrtc test with Asterisk 16.4.0
The endpoints get registered well and it’s able to send calls without problems … but without audio.
This is the Asterisk CLI:
-- Executing [600@entrantes:1] Answer("PJSIP/webrtc_test-000005e5", "") in new stack
-- Executing [600@entrantes:2] Playback("PJSIP/webrtc_test-000005e5", "demo-congrats") in new stack
-- <PJSIP/webrtc_test-000005e5> Playing 'demo-congrats.slin16' (language 'en')
Nothing wrong there.
The http.conf:
[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/letsencrypt/archive/xxxxxxxxx.com/cert1.pem
tlsprivatekey=/etc/letsencrypt/archive/xxxxxxxxx.com/cert1.pem
The rtp.conf:
[general]
rtpstart=10000
rtpend=20000
rtpchecksums=no
dtmftimeout=3000
rtcpinterval=5000
strictrtp=no
icesupport=true
stunaddr=stun.l.google.com:19302
The pjsip.conf:
[webrtc_test]
type=aor
max_contacts=1
remove_existing=yes
[webrtc_test]
type=auth
auth_type=userpass
username=webrtc_test
password=xxxxxxxxxxxxx
[webrtc_test]
type=endpoint
aors=webrtc_test
auth=webrtc_test
use_avpf=yes
media_encryption=dtls
dtls_ca_file=/etc/letsencrypt/archive/xxxxxxxxxxx.com/cert1.pem
dtls_cert_file=/etc/letsencrypt/archive/xxxxxxxxxx.com/cert1.pem
dtls_verify=fingerprint
dtls_setup=actpass
ice_support=yes
media_use_received_transport=yes
rtcp_mux=yes
context=entrantes
disallow=all
allow=opus
The RTP log:
[2020-04-16 13:54:28] VERBOSE[32020][C-00000267] res_rtp_asterisk.c: Sent RTP packet to 88.5.35.95:64260 (type 111, seq 007662, ts 000960, len 000070)
[2020-04-16 13:54:28] VERBOSE[32020][C-00000267] res_rtp_asterisk.c: Sent RTP packet to 88.5.35.95:64260 (type 111, seq 007663, ts 001920, len 000069)
[2020-04-16 13:54:28] VERBOSE[32020][C-00000267] res_rtp_asterisk.c: Sent RTP packet to 88.5.35.95:64260 (type 111, seq 007664, ts 002880, len 000070)
[2020-04-16 13:54:28] VERBOSE[32020][C-00000267] res_rtp_asterisk.c: Sent RTP packet to 88.5.35.95:64260 (type 111, seq 007665, ts 003840, len 000070)
…
And here the SIP debug of the INVITE:
INVITE sip:600@xxxxxxxxxxxxx.com:5080 SIP/2.0
Via: SIP/2.0/WSS e365p8cqo4oi.invalid;branch=z9hG4bK1952616
Max-Forwards: 69
To: <sip:600@xxxxxxxxxxxxx.com:5080>
From: "test" <sip:webrtc_test@xxxxxxxxxxxx.com:5080>;tag=n666jbbb7v
Call-ID: bfjavj2i62c5vhf2772n
CSeq: 7177 INVITE
Contact: <sip:9p80dn3f@e365p8cqo4oi.invalid;transport=ws;ob>
Content-Type: application/sdp
Session-Expires: 90
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY
Supported: timer,ice,replaces,outbound
User-Agent: JsSIP 3.3.11
Content-Length: 7339
v=0
o=- 4448799088798269464 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=msid-semantic: WMS eOAgk0Cy4UQ2OpJqYPUQelJJ0gmOpknKzAIJ
m=audio 55579 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 88.5.35.95
a=rtcp:55580 IN IP4 88.5.35.95
a=candidate:2322976989 1 tcp 1518280447 192.168.1.71 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:2322976989 2 tcp 1518280446 192.168.1.71 9 typ host tcptype active generation 0 network-id 1 network-cost 10
a=candidate:3304467501 1 udp 2122260223 192.168.1.71 55579 typ host generation 0 network-id 1 network-cost 10
a=candidate:3304467501 2 udp 2122260222 192.168.1.71 55580 typ host generation 0 network-id 1 network-cost 10
a=candidate:853956089 1 udp 1686052607 88.5.35.95 55579 typ srflx raddr 192.168.1.71 rport 55579 generation 0 network-id 1 network-cost 10
a=candidate:853956089 2 udp 1686052606 88.5.35.95 55580 typ srflx raddr 192.168.1.71 rport 55580 generation 0 network-id 1 network-cost 10
a=ice-ufrag:hpgo
a=ice-pwd:mkC6lujrLiRR2LegFyKbllxf
a=ice-options:trickle
a=fingerprint:sha-256 DA:DA:13:4C:08:8C:06:9F:DC:C7:C8:4C:E8:3D:F5:8F:22:C4:E3:27:C1:D1:F6:77:0A:62:DF:66:EB:55:B3:86
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:eOAgk0Cy4UQ2OpJqYPUQelJJ0gmOpknKzAIJ c5c57d91-351c-4170-b73a-9bccef52f9b3
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
…
Looks like an ICE problem but the setup look all ok.
¿Any ideas?
Thanks !!!
Richi