Answers to: Error when configuring Linphone to use SIP (TLS) and ZRTP encryptionhttp://linuxexchange.org/questions/3383/error-when-configuring-linphone-to-use-sip-tls-and-zrtp-encryption<p>I am trying to configure <a href="http://www.linphone.org/">Linphone</a> to wrap all media communications in an encryption layer (on Xubuntu). According to <a href="http://www.linphone.org/technical-corner/linphone.html">their website</a>, Linphone supports: </p> <blockquote> <p>Secure communications (TLS, SRTP, zRTP)</p> </blockquote> <p>However, when I try to configure Linphone in <code>Options &gt; Prefs &gt; Network Settings &gt; Network protocol</code> and select <code>SIP (TLS)</code> then Linphone immediately complains with the following error message: </p> <pre><code>Could not start tls transport on port 5060, maybe this port is already used. </code></pre> <p>Linphone works just fine when I switch back to <code>SIP (UDP)</code>. </p> <p>What is wrong and how can I fix it? </p>enWed, 04 Feb 2015 02:28:44 -0500Answer by andolini7110http://linuxexchange.org/questions/3383/error-when-configuring-linphone-to-use-sip-tls-and-zrtp-encryption/3482<p>I had the same problem and after lot of searching on the web, I didn't find any solution to it. I switched over to <a href="http://www.voipinvite.com">VoIPInvite SIP services</a> and i am pretty happy with their services.</p>andolini7110Wed, 04 Feb 2015 02:28:44 -0500http://linuxexchange.org/questions/3383/error-when-configuring-linphone-to-use-sip-tls-and-zrtp-encryption/3482Answer by landronihttp://linuxexchange.org/questions/3383/error-when-configuring-linphone-to-use-sip-tls-and-zrtp-encryption/3400<p>I think I managed to figure out this one. In the end the issue doesn't seem to be on Linphone's side at all. It turns out that some SIP providers do NOT support transporting traffic through <code>TLS</code> (<a href="http://www.iptel.org/">Iptel</a> or <a href="http://www.antisip.com/">Antisip</a>), while others do support that: <a href="http://www.linphone.org/free-sip-service.html">Linphone SIP service</a> or <a href="https://ostel.co/">Ostel</a>.</p> <p>To avoid the error above and to place a secure SIP call via <code>TLS</code> and using <code>ZRTP</code> encryption I had to do the following: </p> <ul> <li>upgrade to Linphone <a href="http://www.linphone.org/news/19/26/Linphone-3-7-for-Windows-Desktop-Mac-OSX-and-Linux.html">3.7.0</a>: "possible to configure multiple proxy accounts with different transports (UDP, TCP, TLS)"</li> <li>add a SIP account in Linphone using <a href="http://www.linphone.org/free-sip-service.html">Linphone SIP service</a> or <a href="https://ostel.co/">Ostel</a> SIP providers</li> <li>for each account, in the <code>SIP Account Configuration</code> dialogue set <code>Transport</code> to <code>TLS</code> (instead of <code>UDP</code>)</li> <li>in <code>Options &gt; Prefs &gt; Network Settings</code> set <code>Media encryption type</code> to <code>ZRTP</code></li> </ul> <p>Now you can check that all works as expected by calling the Ostel Echo testing service <code>sip:9196@ostel.co</code> and verifying that you see the message <code>Secured by ZRTP - [auth token: ab34]</code>. I suspect that the NSA should have a harder time intercepting that..</p>landroniMon, 18 Aug 2014 14:30:41 -0400http://linuxexchange.org/questions/3383/error-when-configuring-linphone-to-use-sip-tls-and-zrtp-encryption/3400