<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, May 4, 2014 at 11:07 PM, aawaise <span dir="ltr"><<a href="mailto:owaisulhaq@hotmail.com" target="_blank">owaisulhaq@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
 I have configured TLS on kamailio server. Problem is that in kamailio.cfg,<br>
when I use command port =5061. Kamailio doesnot start and error given in<br>
logs is<br>
>> ERROR: tcp_init : bind(a, 0x9007f4, 16) on MyIP:5061 : Adress already in<br>
>> use<br>
>> ERROR: Error while initializing TCP port of TLS Socket MyIP:5061<br></blockquote><div><br></div><div>By default, Kamailio will try to listen on all interfaces on tcp/5061 if you have TLS enabled. By using "port=5061", you're trying to have Kamailio listen on tcp/5061 twice. Remove it. If you need to override Kamailio's default listen behavior, use the "listen" directive.<br>
<br></div><div>listen=tls:<a href="http://192.0.2.1:5061">192.0.2.1:5061</a><br><br></div><div>Corey<br><br></div></div></div></div>