WebRTC No Audio

Home » Asterisk Users » WebRTC No Audio
Asterisk Users 7 Comments

I’m facing strange problem:
Aasterisk13.5 + chan_sip wss transport + SIPML5 1.5.230 person1 to person3 are behind different NATs audio devices double checked. Call from person1(chrome) to person2(chrome) works call from person1(chrome) to person 3(chrome) – no audio on both side (RTP flowing only in one direction) call from person2(chrome) to person 3(chrome) – no audio on both side (RTP flowing only in one direction) BUT call from person2(chrome) to person 3(Jitsi sip client) – works!

any tips howto find the problem?

7 thoughts on - WebRTC No Audio

  • Marek Cervenka wrote:

    You would need to look at the ICE negotiation to see if it tried and failed. After that would be looking at the DTLS negotiation. Asterisk console output could provide some information.

  • I’m having the same issue! The difference in my case is Asterisk server has a public IPv4 and the browser is behind a single NAT.

    I’m forwarding my configuration below (which I posted previously on asterisk-users).

    How can we debug ICE negotiation?

    ———- Forwarded message ——–

  • Vinicius Fontes wrote:

    You have to do a packet capture, look at the exchange in Wireshark, and see how the negotiation flows. It requires a basic understanding of ICE.

  • I have it working now!

    *I had to install Asterisk 13 with PJSIP support.That’s important, even if you won’t use PJSIP.* Then I did this configuration, which is working fine under NAT:

    type=friend secret=REDACTED
    host=dynamic context=interno disallow=all
    dtmf=auto videosupport=yes transport=ws,udp avpf=yes callerid=”WebRTC” <6001>
    encryption=yes qualify=yes directmedia=no nat=force_rport,comedia icesupport=yes dtlsenable=yes ; Tell Asterisk to enable DTLS for this peer dtlsverify=no ; Tell Asterisk to not verify your DTLS certs dtlscertfile=/etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS cert file is dtlsprivatekey=/etc/asterisk/keys/asterisk.pem ; Tell Asterisk where your DTLS private key is dtlssetup=actpass ; Tell Asterisk to use actpass SDP parameter when setting up DTLS

    icesupport=true stunaddr=stun.l.google.com:19302

    stunaddr = stun.l.google.com:19302 ; Address of the STUN server to query. stunrefresh = 30

    2015-08-12 5:23 GMT-03:00 Marek Červenka :