<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>By default Kamailio will listen on the port that is defined&nbsp;by the SIP RFP (<a href="http://tools.ietf.org/html/rfc3261">http://tools.ietf.org/html/rfc3261</a>) that is 5061. If the client does the same (it&nbsp;complies by default with the RFC) then you don't need to do anything. But as Dave said below, some clients you must do it manually.<br><BR><div><div id="SkyDrivePlaceholder">Moacir</div><div>&nbsp;</div>&gt; From: jdavidthomson@hotmail.com<br>&gt; To: onmyway133@gmail.com; sr-users@lists.sip-router.org<br>&gt; Date: Thu, 21 Mar 2013 03:55:17 +0000<br>&gt; Subject: Re: [SR-Users] How to enable TLS in Kamailio ?<br>&gt; <br>&gt; Didn't read the whole thread, but, in some clients you need to specify the transport is TLS and the port is 5061 (assuming you use the default). <br>&gt; <br>&gt; Hth.<br>&gt; <br>&gt; Ttyl,<br>&gt; Dave<br>&gt; -----Original Message-----<br>&gt; From: Khoa Pham &lt;onmyway133@gmail.com&gt;<br>&gt; Date: Thu, 21 Mar 2013 03:52:12 <br>&gt; To: &lt;sr-users@lists.sip-router.org&gt;<br>&gt; Subject: Re: [SR-Users] How to enable TLS in Kamailio ?<br>&gt; <br>&gt; <br>&gt; @Moacir, thanks<br>&gt; <br>&gt; <br>&gt; 1. You said that "&nbsp;then use "listen="my ip address" and all enabled services will be bound to the especified IP address." So which port does Kamailio listen for TCP and TLS? How does client know which port to connect to Kamailio ? <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; On Thu, Mar 21, 2013 at 12:41 AM, Moacir Ferreira &lt;moacirferreira@hotmail.com &lt;mailto:moacirferreira@hotmail.com&gt; &gt; wrote:<br>&gt;  <br>&gt; <br>&gt; Hummm. When I start playing with Kamailio I had some problems that were related to the compilation process not really to the final product. Now, if you comment out the listen statement then all server interfaces will listen for all enabled services (SIP-UDP, SIP-TCP and SIP-TLS if you enabled it).&nbsp;AS a troubleshooting suggestion, just comment out the "listen" statement and all enabled services will bind to all available IP interfaces. If it works,&nbsp;then use "listen="my ip address" and all enabled services will be bound to the especified IP address.<br>&gt;  &nbsp;<br>&gt; Best regards,<br>&gt; &nbsp;<br>&gt; Moacir<br>&gt; <br>&gt; <br>&gt; <br>&gt; ----------------<br>&gt; From: oej@edvina.net &lt;mailto:oej@edvina.net&gt; <br>&gt; Date: Wed, 20 Mar 2013 12:43:06 +0100<br>&gt; To: sr-users@lists.sip-router.org &lt;mailto:sr-users@lists.sip-router.org&gt; <br>&gt;  Subject: Re: [SR-Users] How to enable TLS in Kamailio ?<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 20 mar 2013 kl. 10:33 skrev Khoa Pham &lt;onmyway133@gmail.com &lt;mailto:onmyway133@gmail.com&gt; &gt;: <br>&gt; <br>&gt; Hi Olle,<br>&gt; <br>&gt; <br>&gt; I follow these 2 tutorials<br>&gt; 1.&nbsp;http://nil.uniza.sk/network-security/tls/configuring-tls-support-kamailio-31-howto <br>&gt; which only describes to listen on tls<br>&gt; <br>&gt; <br>&gt; listen=tls:158.193.139.51:5061 &lt;http://158.193.139.51:5061/&gt; <br>&gt; 2.&nbsp;http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates <br>&gt; which only describes to listen on udp and tcp<br>&gt;  listen=udp:&lt;ip-address-for-receiving-sip-requests&gt;:5060 listen=tcp:&lt;ip-address-for-receiving-sip-requests&gt;:5060 <br>&gt; <br>&gt; <br>&gt; It is not until I listen on both TCP and LTS does it work.<br>&gt; <br>&gt; <br>&gt; You document&nbsp;http://kamailio.org/docs/modules/4.0.x/modules/tls.html seems to lack of these "listen" Right.<br>&gt; But it's in the core cookbook. We should propably add the listen to the TLS docs too.<br>&gt; <br>&gt; <br>&gt; Thanks!<br>&gt; <br>&gt; <br>&gt; /O<br>&gt; <br>&gt;  <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; On Wed, Mar 20, 2013 at 4:10 PM, Olle E. Johansson &lt;oej@edvina.net &lt;mailto:oej@edvina.net&gt; &gt; wrote:<br>&gt;  <br>&gt; <br>&gt; <br>&gt; <br>&gt; 20 mar 2013 kl. 07:55 skrev Daniel-Constantin Mierla &lt;miconda@gmail.com &lt;mailto:miconda@gmail.com&gt; &gt;: <br>&gt; <br>&gt;  <br>&gt;  Hello,<br>&gt;  <br>&gt;  when tls module is installed, a self signed pair of certificate-private key is generated in /usr/local/etc/kamailio<br>&gt;  <br>&gt;  If you need one that is signed by a trusted CA (e.g., Verisign), you will have to buy it.<br>&gt;  <br>&gt;  Cheers,<br>&gt;  Daniel<br>&gt;  <br>&gt;  <br>&gt; On 3/19/13 8:08 AM, Khoa Pham wrote:<br>&gt;  <br>&gt; Hi,&nbsp; <br>&gt; <br>&gt;  I want to enable TLS in Kamailio, as in here&nbsp;http://kamailio.org/docs/modules/stable/modules/tls.html <br>&gt; <br>&gt;  <br>&gt;  But how can I get the certificate and private key ?<br>&gt;  <br>&gt; <br>&gt; The documentation for the TLS module actually includes a quick howto.<br>&gt; http://kamailio.org/docs/modules/4.0.x/modules/tls.html <br>&gt; <br>&gt; <br>&gt; What part of this needs clarification? Please help us make the documentation better if there are parts you do not undertand or isn't explained.<br>&gt; <br>&gt; <br>&gt; Thanks,<br>&gt; /O<br>&gt;  <br>&gt; _______________________________________________<br>&gt;  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt;  sr-users@lists.sip-router.org &lt;mailto:sr-users@lists.sip-router.org&gt; <br>&gt;  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt;  <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Khoa Pham<br>&gt; HCMC University of Science<br>&gt;  Faculty of Information Technology<br>&gt;  _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; sr-users@lists.sip-router.org &lt;mailto:sr-users@lists.sip-router.org&gt; <br>&gt;  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt; <br>&gt; <br>&gt; _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org &lt;mailto:sr-users@lists.sip-router.org&gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users                                            <br>&gt; _______________________________________________<br>&gt;  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt;  sr-users@lists.sip-router.org &lt;mailto:sr-users@lists.sip-router.org&gt; <br>&gt;  http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt;  <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Khoa Pham<br>&gt; HCMC University of Science<br>&gt;  Faculty of Information Technology<br>&gt; <br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; sr-users@lists.sip-router.org<br>&gt; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></div>                                               </div></body>
</html>