<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
please keep the mailing list cc-ed, others may benefit of this
discussion, participate with ideas or solutions.<br>
<br>
On 4/20/10 9:18 PM, Bruno Bresciani wrote:
<blockquote
 cite="mid:o2ye742fa211004201218o1cd0ed1cib193621a09249dbf@mail.gmail.com"
 type="cite">Thank you for your help Daniel... I was reading the source
code to understand the parameter "connection_timeout" in the TLS module
3.0.x version and check if it help me too. When timer
"connection_timeout" expire, the function that die idle tls connection
cold generate a user unregister <span id="result_box"
 class="short_text"><span style="background-color: rgb(255, 255, 255);"
 title="poderia gerar um desregistro ao usu&aacute;rio referente a esta conex&atilde;o">regarding
this connection.<br>
  </span></span></blockquote>
That event happens in a different place than location service and a
location record does not keep reference to the connection, therefore
you need to do a bit of coding.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:o2ye742fa211004201218o1cd0ed1cib193621a09249dbf@mail.gmail.com"
 type="cite"><span id="result_box" class="short_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="poderia gerar um desregistro ao usu&aacute;rio referente a esta conex&atilde;o"></span></span><br>
  <br>
  <div class="gmail_quote">2010/4/20 Daniel-Constantin Mierla <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div class="im"><br>
    <br>
On 4/20/10 8:29 PM, Daniel-Constantin Mierla wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <br>
      <br>
On 4/20/10 7:30 PM, I&ntilde;aki Baz Castillo wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2010/4/20 Bruno Bresciani&lt;<a moz-do-not-send="true"
 href="mailto:bruno.bresciani@gmail.com" target="_blank">bruno.bresciani@gmail.com</a>&gt;:<br>
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi people, this is my first time that I writing to this list and I nedd
some<br>
help... When kamailio lost connection with a user registred over TLS<br>
(timeout for examlple), I want this user be unregister in kamailio too.
How<br>
can I make this unregister?<br>
        </blockquote>
It's a commendable feature request, but it's not implemented right now.<br>
      </blockquote>
      <br>
it might now be easy to catch connection lost (forward or wait state
case). <br>
    </blockquote>
    <br>
    </div>
^^^ I meant: it might NOT be easy ...<br>
    <br>
E.g., for forward case, detection is after config processing, when
trying to relay. If there are many branches, it is not even reported if
one branch succeeds or sends another negative reply code.
    <div>
    <div class="h5"><br>
    <br>
    <br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also, unregistering a contact is not really following the rfc, anyhow,
this is not something complex to add if you have the contact details.<br>
      <br>
What you can do right now is to avoid trying to send if the connection
is not longer open, see:<br>
      <a moz-do-not-send="true"
 href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#set_forward_no_connect"
 target="_blank">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#set_forward_no_connect</a>
      <br>
      <br>
Contact is in memory, but no penalty for performances. Very useful for
NAT cases or when UA is supposed to keep the connection open.<br>
      <br>
Cheers,<br>
Daniel<br>
      <br>
    </blockquote>
    <br>
-- <br>
Daniel-Constantin Mierla * <a moz-do-not-send="true"
 href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
* <a moz-do-not-send="true" href="http://twitter.com/miconda"
 target="_blank">http://twitter.com/miconda</a> * <a
 moz-do-not-send="true"
 href="http://www.linkedin.com/in/danielconstantinmierla"
 target="_blank">http://www.linkedin.com/in/danielconstantinmierla</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a> * <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a>
* <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/danielconstantinmierla">http://www.linkedin.com/in/danielconstantinmierla</a>
</div>
</body>
</html>