<div dir="ltr">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.<div><br></div><div>I'm forwarding my configuration below (which I posted previously on asterisk-users).<div><br></div><div>How can we debug ICE negotiation?</div><div><br></div><div><br></div><div>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Vinicius Fontes</b> <span dir="ltr"><<a href="mailto:vinicius@aittelecom.com.br">vinicius@aittelecom.com.br</a>></span><br>Date: 2015-07-27 13:54 GMT-03:00<br>Subject: No audio on SIP over WebRTC<br>To: Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br><br><br><div dir="ltr">I'm following this tutorial (<a href="https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5" target="_blank">https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5</a>) to deploy WebRTC support but I'm having an issue with RTP when the WebRTC softphone is behind NAT.<div><br></div><div>In my scenario, the Asterisk server is running a public IPv4, and the softphone is behind NAT. I can register and make a call normally, but I don't get any audio in neither way (Asterisk/softphone and softphone/Asterisk). Using the very same config files but having the softphone and Asterisk on the same network it works fine.</div><div><br></div><div>Any tips on how to solve this? Here's my relevant files.</div><div><br></div><div><div><font face="monospace, monospace"><b>;sip.conf:</b></font></div><div><font face="monospace, monospace">[general]</font></div><div><font face="monospace, monospace">udpbindaddr=<a href="http://0.0.0.0:5060/" target="_blank">0.0.0.0:5060</a></font></div><div><font face="monospace, monospace">realm=10.201.0.106 ;replace with your Asterisk server public IP address or host</font></div><div><font face="monospace, monospace">transport=udp,ws,wss</font></div><div><font face="monospace, monospace">tlsenable=yes</font></div><div><font face="monospace, monospace">tlsbindaddr=0.0.0.0</font></div><div><font face="monospace, monospace">tlscertfile=/etc/asterisk/keys/asterisk.pem</font></div><div><font face="monospace, monospace">tlscafile=/etc/asterisk/keys/ca.crt</font></div><div><font face="monospace, monospace">tlscipher=ALL</font></div><div><font face="monospace, monospace">tlsclientmethod=tlsv1</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[6000]</font></div><div><font face="monospace, monospace">host=dynamic</font></div><div><font face="monospace, monospace">secret=mysecret</font></div><div><font face="monospace, monospace">context=default</font></div><div><font face="monospace, monospace">type=friend</font></div><div><font face="monospace, monospace">icesupport=yes</font></div><div><font face="monospace, monospace">directmedia=no</font></div><div><font face="monospace, monospace">disallow=all</font></div><div><font face="monospace, monospace">allow=ulaw</font></div><div><font face="monospace, monospace">qualify=yes</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[6001]</font></div><div><font face="monospace, monospace">host=dynamic</font></div><div><font face="monospace, monospace">secret=mysecret</font></div><div><font face="monospace, monospace">context=default</font></div><div><font face="monospace, monospace">type=friend</font></div><div><font face="monospace, monospace">encryption=yes</font></div><div><font face="monospace, monospace">avpf=yes</font></div><div><font face="monospace, monospace">force_avp=yes</font></div><div><font face="monospace, monospace">icesupport=yes</font></div><div><font face="monospace, monospace">directmedia=no</font></div><div><font face="monospace, monospace">disallow=all</font></div><div><font face="monospace, monospace">allow=ulaw</font></div><div><font face="monospace, monospace">dtlsenable=yes</font></div><div><font face="monospace, monospace">dtlsverify=fingerprint</font></div><div><font face="monospace, monospace">dtlscertfile=/etc/asterisk/keys/asterisk.pem</font></div><div><font face="monospace, monospace">dtlscafile=/etc/asterisk/keys/ca.crt</font></div><div><font face="monospace, monospace">dtlssetup=actpass</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><b>extensions.conf:</b></font></div><div><font face="monospace, monospace">[default]</font></div><div><font face="monospace, monospace">exten => _6XXX,1,Dial(SIP/${EXTEN})</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><b>rtp.conf:</b></font></div><div><font face="monospace, monospace">[general]</font></div><div><font face="monospace, monospace">rtpstart=10000</font></div><div><font face="monospace, monospace">rtpend=20000</font></div><div><font face="monospace, monospace">icesupport=yes</font></div><div><font face="monospace, monospace">stunaddr=<a href="http://stun.l.google.com:19302/" target="_blank">stun.l.google.com:19302</a></font></div><div><font face="monospace, monospace"><br></font></div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-10 12:35 GMT-03:00 Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Marek Cervenka wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,<br>
<br>
i'm facing strange problem<br>
<br>
asterisk13.5 + chan_sip wss transport + SIPML5 1.5.230<br>
person1 to person3 are behind different NATs<br>
audio devices double checked<br>
<br>
call from person1(chrome) to person2(chrome) works<br>
call from person1(chrome) to person 3(chrome) - no audio on both side<br>
(RTP flowing only in one direction)<br>
call from person2(chrome) to person 3(chrome) - no audio on both side<br>
(RTP flowing only in one direction)<br>
BUT<br>
call from person2(chrome) to person 3(Jitsi sip client) - works!<br>
<br>
any tips howto find the problem?<br>
</blockquote>
<br></span>
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.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a></font></span><div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>