Thanks, now i could see the call being received on Browser. But still no RTP seen, Audio and Video is failing.
See below updated sip.conf, http.conf, rtp.conf.
http.conf
[general]
enabled=yes
bindaddr=192.168.0.180
bindport=8088
tlsenable=yes ; enable tls - default no.
tlsbindaddr=0.0.0.0:8089 ; address and port to bind to - default is bindaddr and port 8089.
;
tlscertfile=/etc/asterisk/keys/asterisk.pem ; path to the certificate file (.pem) only.
tlsprivatekey=/etc/asterisk/keys/asterisk.pem ; path to private key file (.pem) only.
sip.conf
[general]
udpbindaddr=0.0.0.0:5060
realm=192.168.0.180 ;replace with your Asterisk server public IP address or host
transport=udp,ws,wss
; realm=202.65.140.19
; externip=202.65.140.19
videosupport=yes
srvlookup=yes
[6001]
type=friend
host=dynamic
username=6001
secret=password
context=from-internal
encryption=yes
srtpcapable=yes
avpf=yes
force_avp=yes
icesupport=yes
directmedia=yes
allow=all
allow=ulaw
allow=gsm
; allow=h263
dtlsenable=yes
dtlsverify=yes
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtls_setup=actpass
rtcp_mux=yes
rtp.conf
[general]
rtpstart=10000
rtpend=20000
icesupport=yes
stunaddr:19302=stun.l.google.com
Console output
-- Attempting call on SIP/6001 for 10@from-outbound:1 (Retry 1)
== DTLS ECDH initialized (secp256r1), faster PFS enabled
== DTLS ECDH initialized (secp256r1), faster PFS enabled
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
[May 25 09:49:06] ERROR[29852]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“df7jal23ls0d.invalid”, “(null)”, …): Name or service not known
[May 25 09:49:06] WARNING[29852]: chan_sip.c:16667 __set_address_from_contact: Invalid host name in Contact: (can’t resolve in DNS) : ‘df7jal23ls0d.invalid’
[May 25 09:49:06] ERROR[29852]: netsock2.c:98 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
– Called 6001
– SIP/6001-00000024 is ringing
– SIP/6001-00000024 answered
– Executing [10@from-outbound:1] NoOp(“SIP/6001-00000024”, ““From outbound””) in new stack
– Executing [10@from-outbound:2] WaitExten(“SIP/6001-00000024”, “10”) in new stack
– Executing [7@from-outbound:1] NoOp(“SIP/6001-00000024”, ""Input received from user as: “7”) in new stack
– Executing [7@from-outbound:2] SayDigits(“SIP/6001-00000024”, “7”) in new stack
– <SIP/6001-00000024> Playing ‘digits/7.gsm’ (language ‘en’)
[May 25 09:49:24] ERROR[29913][C-00000024]: res_rtp_asterisk.c:2218 __rtp_recvfrom: DTLS failure occurred on RTP instance ‘0x989db7c’ due to reason ‘certificate verify failed’, terminating
[May 25 09:49:24] WARNING[29913][C-00000024]: res_rtp_asterisk.c:4464 ast_rtp_read: RTP Read error: Unspecified. Hanging up.
== Spawn extension (from-outbound, 7, 2) exited non-zero on ‘SIP/6001-00000024’
Another observation in addition to the above
When i try to open URL: https://192.168.0.180:8089/ws i see below mentioned string displayed on screen
Upgrade Required
Asterisk/14.2.1