How to check for alive connection in TCP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



@Gustavo: thanks for your prompt reply

1. In the REGISTER message, there is Expire field, which indicates the
expire time for this registration.
2.  TCP keep alive, AFAIK, is only useful for NAT scenario, because NAT
router only keep NAT binding for most recent active connection.
I'm targeting iOS. When my iOS app enters background, this TCP connection
can be killed by OS (due to lack of resource). When my app enter foreground
again, how to know if this connection is still alive ?


On Wed, Apr 10, 2013 at 3:48 PM, Gustavo Garcia Bernardo <ggb at tid.es> wrote:

> Inline...
>
> > 1. How to check if our registration stills valid on registrar  ?? (to
> let other clients to not see the "Not found" message when calling us)
>
> There is no reason for a registration not to be valid.   Can you explain
> the use case/scenario where you need that?
>
> > 2. How to check if this TCP connection is still alive ?? (If this
> connection is broken, server will not be able to send us INVITE)
>
> TCP keepalives (as per rfc5626) are used for this.    I think they are
> enabled by default in pjsip:
>
> http://www.pjsip.org/pjsip/docs/html/structpjsua__acc__config.htm#a98722b6464d16b5a76aec81f2d2a0694
>
> >
> > --
> > Khoa Pham
> > HCMC University of Science
> > Faculty of Information Technology
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ________________________________
>
> Este mensaje se dirige exclusivamente a su destinatario. Puede consultar
> nuestra pol?tica de env?o y recepci?n de correo electr?nico en el enlace
> situado m?s abajo.
> This message is intended exclusively for its addressee. We only send and
> receive email on the basis of the terms set out at:
> http://www.tid.es/ES/PAGINAS/disclaimer.aspx
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



-- 
Khoa Pham
HCMC University of Science
Faculty of Information Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130410/8e57a5a5/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux