Re: [SR-Users] detect failed socket

2016-09-05 Thread Daniel-Constantin Mierla
On 05/09/16 16:39, Daniel Tryba wrote: > On Mon, Sep 05, 2016 at 11:30:33AM +0200, Camille Oudot wrote: >>> Just out of curiosity, but is kamailio notified (some event in the >>> config) that a socket died when using tcp keepalives on the OS level? >> If the tcpops module is loaded, the tcp:closed

Re: [SR-Users] detect failed socket

2016-09-05 Thread Daniel Tryba
On Mon, Sep 05, 2016 at 11:30:33AM +0200, Camille Oudot wrote: > > Just out of curiosity, but is kamailio notified (some event in the > > config) that a socket died when using tcp keepalives on the OS level? > > If the tcpops module is loaded, the tcp:closed event route will be > called: > > http

Re: [SR-Users] detect failed socket

2016-09-05 Thread Camille Oudot
> Just out of curiosity, but is kamailio notified (some event in the > config) that a socket died when using tcp keepalives on the OS level? If the tcpops module is loaded, the tcp:closed event route will be called: http://kamailio.org/docs/modules/devel/modules/tcpops.html#idp24759196 -- Camil

Re: [SR-Users] detect failed socket

2016-09-05 Thread Daniel Tryba
On Mon, Sep 05, 2016 at 09:19:59AM +0200, Daniel-Constantin Mierla wrote: > > I would be interested in if it is possible to detect such situations > > on Kamailio side when for example a message cannot be delivered > > because of such network conditions like airplane mode? > You can use failure_rou

Re: [SR-Users] detect failed socket

2016-09-05 Thread Daniel-Constantin Mierla
age- > From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of > Camille Oudot > Sent: Monday, August 29, 2016 6:13 PM > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] detect failed socket > >> Is it possible to check the socket towar

Re: [SR-Users] detect failed socket

2016-09-02 Thread Péter Barabás
...@lists.sip-router.org] On Behalf Of Camille Oudot Sent: Monday, August 29, 2016 6:13 PM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] detect failed socket > Is it possible to check the socket towards the receiver user at the > moment when the message arrives at Kamailio? I thin

Re: [SR-Users] detect failed socket

2016-08-29 Thread Péter Barabás
Hi, any idea for the problem below? Thanks. Peter From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Péter Barabás Sent: Thursday, August 18, 2016 3:55 PM To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] detect failed socket Hello, I want to refine the

Re: [SR-Users] detect failed socket

2016-08-29 Thread Juha Heinanen
Camille Oudot writes: > one solution would be to use the handle_lost_tcp parameter from usrloc > so that the record will be removed from it if the connection is closed: > > http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.handle_lost_tcp would it be big job to add support for

Re: [SR-Users] detect failed socket

2016-08-29 Thread Camille Oudot
> Is it possible to check the socket towards the receiver user at the > moment when the message arrives at Kamailio? I think if I would check > that if the socket is not fine, I could send the message to the msilo > directly and the client would not have wait for timeout to resend. Hi, one soluti

[SR-Users] detect failed socket

2016-08-18 Thread Péter Barabás
Hello, I want to refine the instant message handling in our application. It works really fine in most cases. I use the msilo module to store offline messages if the user is not registered with sending PUSH notification. But, there is a situation when I have problems: When I send a message to a u