Есть Asterisk 16, на нём прикрутили WebRTC.
По при звонках, в 60% нету голоса.
Лог приложил, голову уже сломал не виду ошибок.
Конфа такая:
sip.conf
Код: Выделить всё
[general]
realm=79.99.99.111
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0
tlsenable=yes
tlsbindaddr=0.0.0.0
websocket_enabled = true
websocket_write_timeout = 100
transport=udp,tcp,wss,tls,ws
srvlookup=yes
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlsprivatekey=/etc/asterisk/keys/asterisk.key
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1
localnet=192.168.0.0/255.255.0.0
localnet=10.0.0.0/255.0.0.0
localnet=172.16.0.0/12
;externaddr = 79.99.99.111
externhost=pbx.mydomain.ru
rtcachefriends=yes
rtautoclear=yes
[zadarma]
host=sip.zadarma.com
insecure=invite,port
type=friend
fromdomain=sip.zadarma.com
disallow=all
allow=alaw
dtmfmode=auto
secret=XXXxxxXXX
defaultuser=334455
trunkname=334455
fromuser=334455
callbackextension=524214
context=telephone
qualify=400
directmedia=no
nat = force_rport,comedia
[officephones]
disallow=all
allow=alaw
type=peer
host=dynamic
canreinvite=no
context=officephone
subscribecontext=telephone
callcounter=yes
secret=kC243342
rtcp_mux=yes
cesupport=yes
avpf=yes
encryption=yes
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/etc/asterisk/keys/asterisk.pem
dtlscafile=/etc/asterisk/keys/ca.crt
dtlssetup=actpass
icesupport=yes
qualify=yes
directmedia=no
[101](officephones)
[102](officephones)
[103](officephones)
[104](officephones)
[105](officephones)
[106](officephones)
[107](officephones)
[108](officephones)
[109](officephones)
[110](officephones)
Код: Выделить всё
[general]
rtpstart=10000
rtpend=20000
icesupport=true
;stunaddr=stun.l.google.com:19302
Код: Выделить всё
[general]
servername=Asterisk
enabled=yes
bindaddr=0.0.0.0
bindport=8088
sessionlimit=1000
enablestatic=yes
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlsprivatekey=/etc/asterisk/keys/asterisk.key