<div dir="ltr">Jamie,<div>I believe you need to have the wss.pem file in /usr/loca/freeswitch/certs/ directory to avoid this problem.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 27, 2014 at 6:56 AM, Jamie McClelland <span dir="ltr">&lt;<a href="mailto:jm@mayfirst.org" target="_blank">jm@mayfirst.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all - I&#39;m very excited to see support for websockets in 1.4.4!<br>
<br>
However, I&#39;m having trouble getting wss working.<br>
<br>
When I enable it, by adding the following to internal.xml:<br>
<br>
&lt;param name=&quot;wss-binding&quot; value=&quot;:7443&quot;/&gt;<br>
<br>
I get the following error when I reload mod_sofia:<br>
<br>
2014-05-27 09:24:47.910948 [ERR] sofia.c:2778 Error Creating SIP UA for<br>
profile: internal (sip:mod_sofia@209.234.253.18:5060;transport=udp,tcp)<br>
The likely causes for this are:<br>
1) Another application is already listening on the specified address.<br>
2) The IP the profile is attempting to bind to is not local to this<br>
system.<br>
<br>
When I comment out the wss line, the error goes away.<br>
<br>
Strange... 209.234.253.18 is local to the machine, and I&#39;m specifying<br>
7443 as the wss bind IP, not 5060 (which is specified as the &quot;sip_port&quot;<br>
in the internal.xml file). If I change the sip_port to a different<br>
number, I get the error, but it specifies the new sip_port.<br>
<br>
Also, accordig to lsof, port 7443 is not in use.<br>
<br>
I have ws enabled without problems.<br>
<br>
Here are the only differences between my sip_profile directory and the<br>
vanilla conf one:<br>
<br>
0 paul:/etc/freeswitch# diff -ur /usr/share/freeswitch/conf/vanilla/sip_profiles/ /etc/freeswitch/sip_profiles/|less<br>
Only in /etc/freeswitch/sip_profiles/external: mfpl-voicepulse.xml<br>
diff -ur /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml /etc/freeswitch/sip_profiles/internal.xml<br>
--- /usr/share/freeswitch/conf/vanilla/sip_profiles/internal.xml        2014-05-22 14:39:26.000000000 -0400<br>
+++ /etc/freeswitch/sip_profiles/internal.xml   2014-05-27 09:29:29.000000000 -0400<br>
@@ -196,7 +196,7 @@<br>
     &lt;!-- Port to listen on for TLS requests. (5061 will be used if unspecified) --&gt;<br>
     &lt;param name=&quot;tls-sip-port&quot; value=&quot;$${internal_tls_port}&quot;/&gt;<br>
     &lt;!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) --&gt;<br>
-    &lt;!--&lt;param name=&quot;tls-cert-dir&quot; value=&quot;&quot;/&gt;--&gt;<br>
+    &lt;param name=&quot;tls-cert-dir&quot; value=&quot;/etc/freeswitch/certs&quot;/&gt;<br>
     &lt;!-- Optionally set the passphrase password used by openSSL to encrypt/decrypt TLS private key files --&gt;<br>
     &lt;param name=&quot;tls-passphrase&quot; value=&quot;&quot;/&gt;<br>
     &lt;!-- Verify the date on TLS certificates --&gt;<br>
@@ -304,7 +304,7 @@<br>
<br>
<br>
     &lt;!-- uncomment for sip over websocket support --&gt;<br>
-    &lt;!--&lt;param name=&quot;ws-binding&quot;  value=&quot;:5066&quot;/&gt;--&gt;<br>
+    &lt;param name=&quot;ws-binding&quot;  value=&quot;:5066&quot;/&gt;<br>
<br>
     &lt;!-- uncomment for sip over secure websocket support --&gt;<br>
     &lt;!-- You need wss.pem in /usr/local/freeswitch/certs for wss --&gt;<br>
<br>
Any suggestions?<br>
<br>
jamie<br>
<br>
p.s. I do have wss.pem in /etc/freeswitch/certs<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
May First/People Link<br>
Growing networks to build a just world<br>
<a href="http://www.mayfirst.org" target="_blank">http://www.mayfirst.org</a><br>
<a href="https://support.mayfirst.org" target="_blank">https://support.mayfirst.org</a><br>
<br>
OpenPGP Key: <a href="http://current.workingdirectory.net/pages/identity/" target="_blank">http://current.workingdirectory.net/pages/identity/</a><br>
xmpp: <a href="mailto:jamie@im.mayfirst.org">jamie@im.mayfirst.org</a><br>
</font></span><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-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>