[Kamailio-Users] No UDP Address already in use?

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 30 10:22:58 CET 2009


Hello,

On 01/29/2009 07:04 PM, mayamatakeshi wrote:
> Hello,
> 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:
> tcp_init: bind(7, 0x81b28ec, 16) on 127.0.0.1:5060 
> <http://127.0.0.1:5060> : Address already in use
>
> But if the cfg file only instructs kamailio to bind to udp ports, the 
> second instance will not exit. Is this a bug?
>
> I'm curious because if we start kamailio and a udp port is in use by 
> another application (not kamailio), kamailio will exit with
> udp_init: bind(4, 0x819f274, 16) on 192.168.88.29 
> <http://192.168.88.29>: Address already in use
> Why is that so?
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?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the Users mailing list