On Nov 15, 2011 at 14:43, Dmitry Petrakoff <dimon(a)dprs-consulting.com> wrote:
Hi List!
I'm running Kamailio for about 1 year without any serious problems.
When it works with UDP only, it runs perfectly well for us. Without any
major issues.
But now we have a customer who wants to connect Lync to our network.
Unfortunately, Lync does not support UDP for SIP signalling, so we tried
to teach kamailio to send SIP messages via TCP.
And getting strange error:
[...]
10(36629) ERROR: <core> [tcp_main.c:2754]:
10.198.3.100:5060: connect &
send for 0x28d988ac failed: Socket is not connected (57)
10(36629) DEBUG: <core> [tcp_main.c:2955]: tcpconn_chld_put: destroying
connection 0x28d988ac (1, -1) flags 0060
10(36629) ERROR: tm [../../forward.h:170]: msg_send: ERROR: tcp_send failed
Could you try the attached patch and report back if it works?
(I couldn't reproduce it on my ancient FreeBSD 7.1)
I think the problem is that newer FreeBSD versions return ENOTCONN when
attempting to send on a not yet fully connected socket (instead of
EAGAIN).
Andrei
[...]