Hi!
A while ago we discussed an event route when a client close a connection so we can remove registrations.
Did that ever happen?
/O
Hello,
there is a feature added not far ago to usrloc module to remove location records if the tcp connection is not active anymore - see the module parameters. Iirc, doesn't work for db only mode.
Strictly to your question, I don't remember such event route being added.
Cheers, Daniel
On 11/09/15 14:54, Olle E. Johansson wrote:
Hi!
A while ago we discussed an event route when a client close a connection so we can remove registrations.
Did that ever happen?
/O _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On 11 Sep 2015, at 17:48, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
there is a feature added not far ago to usrloc module to remove location records if the tcp connection is not active anymore - see the module parameters. Iirc, doesn't work for db only mode.
Strictly to your question, I don't remember such event route being added.
Consider having an outbound edge server in front of another server that is the registrar. Deleting usrloc entries doesn’t help, since the TCP connection is elsewhere.
I need the edge proxy to react to a connection closing and find a registration based on that (in htable or something). The missing part is the connection close event route…
It’s not really the outbound module (not using outbound here) so maybe we could hook something up in the tcpops module.
Sorry for the latency in reply... /O
Cheers, Daniel
On 11/09/15 14:54, Olle E. Johansson wrote:
Hi!
A while ago we discussed an event route when a client close a connection so we can remove registrations.
Did that ever happen?
/O _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On 01 Oct 2015, at 16:46, Olle E. Johansson oej@edvina.net wrote:
On 11 Sep 2015, at 17:48, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
there is a feature added not far ago to usrloc module to remove location records if the tcp connection is not active anymore - see the module parameters. Iirc, doesn't work for db only mode.
Strictly to your question, I don't remember such event route being added.
Consider having an outbound edge server in front of another server that is the registrar. Deleting usrloc entries doesn’t help, since the TCP connection is elsewhere.
I need the edge proxy to react to a connection closing and find a registration based on that (in htable or something). The missing part is the connection close event route…
It’s not really the outbound module (not using outbound here) so maybe we could hook something up in the tcpops module.
Sorry for the latency in reply…
Looking into usrloc source code it seems pretty trivial to create a function that can check if a TCP connection is considered alive and well.
tcp_conn_check($conid)
Camille - is it ok if I try to create something like that in your tcpops module? It seems to fit in there just fine.
/O
/O
Cheers, Daniel
On 11/09/15 14:54, Olle E. Johansson wrote:
Hi!
A while ago we discussed an event route when a client close a connection so we can remove registrations.
Did that ever happen?
/O _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Hi Olle,
Looking into usrloc source code it seems pretty trivial to create a function that can check if a TCP connection is considered alive and well.
tcp_conn_check($conid)
Camille - is it ok if I try to create something like that in your tcpops module? It seems to fit in there just fine.
Yes, to me it's perfectly fine to add this function here, or could even be a more generic tcp_conn_state($conid), retuning a value that mirrors the corresponding enum (+1 for the >= 0 values):
enum tcp_conn_states { S_CONN_ERROR=-2, S_CONN_BAD=-1, S_CONN_OK=0, /* established (write or read) */ S_CONN_INIT, /* initial state (invalid) */ S_CONN_EOF, S_CONN_ACCEPT, S_CONN_CONNECT };