[Serusers] reuse of existing tcp connection

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Thu Oct 16 16:33:06 CEST 2003


On Oct 16, 2003 at 14:25, Olle E. Johansson <oej at edvina.net> wrote:
> Andrei Pelinescu-Onciul wrote:
> 
> >On Oct 16, 2003 at 17:01, Juha Heinanen <jh at tutpro.com> wrote:
> >
> >>i'm behind gprs service that doesn't allow any incoming udp packets or
> >>establishment of inbound tcp connections.  when i register, a tcp
> >>connection is established between my sip ua and ser.
> >>
> >>if there is an existing tcp connection open between sip ua and ser, is
> >>ser supposed to reuse it for all incoming sip traffic, such as
> >>subscribes and notifies?
> >
> >
> >Yes, ser will try first to reuse existing connection, but if for example
> >you connect from foo:33001 to ser and then someone sends a message to
> >foo or to foo:5060 ser will not find any match in its open connection
> >list, so it will be forced to open a new one.
> >Also all tcp connection will be closed (by ser) after some inactivity 
> >period (3 min).
> Is there a way to keep the connection open for a longer period? Could
> I force the SER proxy to send something, like an OPTIONS request, or do
> I have to minimize the registration timeout on the client to keep
> registrations coming, keeping the TCP session open?

A quick way is to change TCP_CON_TIMEOUT and TCP_CON_SEND_TIMEOUT to 
 a big enough value (e.g 24*3600) and recompile. You can find them in
 tcp_conn.h .

Andrei




More information about the sr-users mailing list