<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"><<a href="mailto:jm@mayfirst.org" target="_blank">jm@mayfirst.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all - I'm very excited to see support for websockets in 1.4.4!<br>
<br>
However, I'm having trouble getting wss working.<br>
<br>
When I enable it, by adding the following to internal.xml:<br>
<br>
<param name="wss-binding" value=":7443"/><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'm specifying<br>
7443 as the wss bind IP, not 5060 (which is specified as the "sip_port"<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>
<!-- Port to listen on for TLS requests. (5061 will be used if unspecified) --><br>
<param name="tls-sip-port" value="$${internal_tls_port}"/><br>
<!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) --><br>
- <!--<param name="tls-cert-dir" value=""/>--><br>
+ <param name="tls-cert-dir" value="/etc/freeswitch/certs"/><br>
<!-- Optionally set the passphrase password used by openSSL to encrypt/decrypt TLS private key files --><br>
<param name="tls-passphrase" value=""/><br>
<!-- Verify the date on TLS certificates --><br>
@@ -304,7 +304,7 @@<br>
<br>
<br>
<!-- uncomment for sip over websocket support --><br>
- <!--<param name="ws-binding" value=":5066"/>--><br>
+ <param name="ws-binding" value=":5066"/><br>
<br>
<!-- uncomment for sip over secure websocket support --><br>
<!-- You need wss.pem in /usr/local/freeswitch/certs for wss --><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>