[SR-Users] strange behavior when trying to reach PSTN gateway via TCP

Dmitry Petrakoff dimon at dprs-consulting.com
Wed Nov 23 08:34:34 CET 2011


Hi Andrei!

As promised, I recompiled kamailio with your patch applied.

First quick tests shows that error has gone. Server now able to initiate
TCP session and communicate with remote.

Will see how it'll behave under load ( after 14:00 CET ).
I will inform you if we'll face with stability problems.

Anyway, thank you very much for quick fix on this problem!

WBR
Dimon


On 22.11.11 13:07, Andrei Pelinescu-Onciul wrote:
> On Nov 15, 2011 at 14:43, Dmitry Petrakoff <dimon at 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
> [...]



More information about the sr-users mailing list