<div dir="ltr">The DTLS cert will be generated for you, As per using ipv6, I don't think we've ever tested that. All TCP connections get a nat treatment and that probably isn't what you're having issues with.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 27, 2014 at 8:09 AM, Tom Parrott <span dir="ltr"><<a href="mailto:tomp@tomp.co.uk" target="_blank">tomp@tomp.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I am experimenting with WebRTC and am failing quite dismally -
mainly due to lack of documentation.<br>
<br>
I realise this is an emerging technology and the standards are
moving, but presumably it does work in some scenarios and it would
be great if a working setup could be documented.<br>
<br>
Anyway, I think I might have found a bug, but have no way to tell
because I've never been able to get WebRTC working with Freeswitch.<br>
<br>
Here's my setup so far:<br>
<br>
<ul>
<li>FreeSWITCH Version
1.5.14b+git~20140725T212415Z~c411f8c7a9~32bit (git c411f8c
2014-07-25 21:24:15Z 32bit)</li>
<li>IPv6 addresses - due to shortage of global IPv4 address, I am
forced to use IPv6</li>
<li>SIPJS - <a href="http://sipjs.com/" target="_blank">http://sipjs.com/</a></li>
<li>Firefox 31/Fedora 20</li>
<li>Apache 2.4.9/Mod_SSL</li>
<li>Startcom SSL cert (which I have configured with Apache fine)<br>
</li>
</ul>
<br>
What I am able to do:<br>
<br>
If I setup the internal IPv4 profile with ws-binding, I can use
SIPJS to register and can successfully see a user registered in
Freeswitch from the browser.<br>
<br>
I can then use SIPJS to make a call, and my desk phone rings,
however I get no media (UDP packets are being sent but presumably
neither side can decode it).<br>
<br>
I also see these errors in the fs_cli debug output though:<br>
<b><br>
</b><b>2014-07-27 13:04:12.108836 [ERR] switch_core_cert.c:210 FP
FILE ERR!</b><b><br>
</b><b>2014-07-27 13:04:12.108836 [ERR] switch_core_cert.c:210 FP
FILE ERR!</b><b><br>
</b><b>2014-07-27 13:04:12.148104 [ERR] switch_rtp.c:2975 audio DTLS
cert err [5]</b><br>
<br>
But I can find no proper documentation on what is required for DTLS
or where to put the cert files.<br>
<br>
Next up I tried IPv6 in the internal-ipv6 profile:<br>
<br>
<param name="tls-cert-dir" value="/etc/freeswitch/certs"/><br>
<param name="wss-binding" value=":7443"/><br>
<br>
I concatenated the cert, key and chain certs together into
/etc/freeswitch/certs/wss.pem and can successfully connect using WSS
and SIPJS.<br>
<br>
The problem however is that although I can see a register,
Freeswitch then kills the registration connection a couple of
seconds later.<br>
<br>
It is also showing the registration as using WSS-NAT, how can that
be possible on IPv6? <br>
<br>
How can I turn off NAT detection on the IPv6 profile?<br>
<br>
Any guidance would be very much appreciated and I will post my setup
to my blog and the Freeswitch wiki if I can get it working, to help
people in the future.<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Tom<br>
<br>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://bkw.org/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div>
</div>