<br><div class="gmail_quote">On Fri, Jan 30, 2009 at 6:22 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div class="Ih2E3d"><br>
<br>
On 01/29/2009 07:04 PM, mayamatakeshi wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hello,<br>
If I start a second instance of kamailio by mistake, if the cfg file instructs it to listen to tcp ports, the second instance will exit with something like this:<br></div>
tcp_init: bind(7, 0x81b28ec, 16) on <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a> &lt;<a href="http://127.0.0.1:5060" target="_blank">http://127.0.0.1:5060</a>&gt; : Address already in use<div class="Ih2E3d">
<br>
<br>
But if the cfg file only instructs kamailio to bind to udp ports, the second instance will not exit. Is this a bug?<br>
<br>
I&#39;m curious because if we start kamailio and a udp port is in use by another application (not kamailio), kamailio will exit with<br></div>
udp_init: bind(4, 0x819f274, 16) on 192.168.88.29 &lt;<a href="http://192.168.88.29" target="_blank">http://192.168.88.29</a>&gt;: Address already in use<br>
Why is that so?<br>
</blockquote>
probably is related to how the kernel allows applications to bind/listen to a port. At the end, the UDP socket is represented by a file descriptor that can have access rights. What is your OS?</blockquote><div><br>Hi Daniel,<br>
I&#39;m using Fedora Core 5. <br>As you said, looking at the code (udp_server.c), I can see the error message comes from bind so this is probably some OS issue (I don&#39;t know much about linux yet), not a bug in kamailio. Thank you.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div><br>