[Kamailio-Users] lifetime and TCP connection timeout

Aymeric Moizard jack at atosc.org
Fri Oct 23 17:35:31 CEST 2009



On Fri, 23 Oct 2009, Klaus Darilion wrote:

> Hi Aymeric!
>
> Kamailio does not support SIP outbound.

No issue there.

> It should close TCP connection after 
> the timeout. The timeout can be specified with 
> http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#tcp_connection_lifetime
>
> So, do I get it right that this does not work (TCP connection closed after 50 
> seconds by Kamailio although the default value is 120 seconds)?

That's right.
I got feedback from other where it's behaving well: lifetime is 120.

> (For outbound support probably the default value should be increased).

It shouldn't! This is a correct value that comply with 95 to 120sec from
the outbound draft for TCP.

> Further, usually the lifetime should be extended to the value of the 
> registration expiration. This can be done by using
> http://www.kamailio.org/docs/modules/1.5.x/registrar.html#id2477171

I understood this. I wish to solve the issue and make sure there is no
bug in kamailio. ;)

So the question is: kamailio is setup to have lifetime=120 but is closing
my connection much earlier: 50 seconds after the connection was made and
30seconds after the last SIP message.

Aymeric

> regards
> klaus
>
> Aymeric Moizard schrieb:
>> 
>> 
>> On Fri, 23 Oct 2009, Iñaki Baz Castillo wrote:
>> 
>>> El Viernes, 23 de Octubre de 2009, Aymeric Moizard escribió:
>>>> Hi all,
>>>> 
>>>> I'm working on improving my TCP support and go some issue
>>>> related to TCP connections and lifetime/persistence.
>>> 
>>> Are you doing that in Kamailio's TM module?
>>> Please take into account that for Kamailio next version SIP-Router TM 
>>> module
>>> will be used, which has received LOT of love for TCP (i.e: non blocking).
>> 
>> Sorry that I missed to put the version of kamailio: I'm using branch 1.5
>> svnversion gives 5868M
>> ChangeLog last line is:
>> ===================== 2009-04-29 Kamailio v1.5.1 released 
>> =====================
>> 
>> Seems like you are misunderstooding me: I'm working on my SIP stacks 
>> against kamailio with no change. I'm not working "on" the tm module.
>> 
>> Tks,
>> Aymeric MOIZARD / ANTISIP
>> amsip - http://www.antisip.com
>> osip2 - http://www.osip.org
>> eXosip2 - http://savannah.nongnu.org/projects/exosip/
>> 
>> 
>>> -- 
>>> Iñaki Baz Castillo <ibc at aliax.net>
>>> 
>>> _______________________________________________
>>> Kamailio (OpenSER) - Users mailing list
>>> Users at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list