<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 3/29/11 4:10 PM, Peter Dunkley wrote:
    <blockquote cite="mid:1301407829.3063.11.camel@pd-laptop-linux"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="GENERATOR" content="GtkHTML/3.32.2">
      Hello,<br>
      <br>
      I think I may have found a bug in the RLS module.<br>
      <br>
      Take two subscribers (alice and bob) who have each other in their
      contact lists.  Log them in (so REGISTER,
      SUBSCRIBE(presence.winfo), SUBSCRIBE(presence), PUBLISH, and so
      on).  Log one (bob) out.  bob's status remains online in alice's
      client.  Restart alice's client (logging her out and in again). 
      bob's status is still shown as online.<br>
      <br>
      Has anyone encountered this before?<br>
    </blockquote>
    to understand properly, bob's presence document is deleted when he
    logged out, but alice still sees bob online after her client is
    logged out and then logged in?<br>
    <br>
    Is this happening all the time when doing such operations?<br>
    <br>
    I will try to check the sources, the module was hard to test without
    a SIP client supporting rls properly and reproducing what you say is
    not trivial as well because of the same reasons.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote cite="mid:1301407829.3063.11.camel@pd-laptop-linux"
      type="cite">
      <br>
      I think it might be related to some errors I am seeing.  When my
      client unSUBSCRIBEs on sign-out I get the following errors (the
      line numbers may be slightly out from the base 3.1.2 version as I
      added some diagnostics to try and find the problem):<br>
      <br>
      <blockquote> Mar 29 13:57:51 supernode /usr/sbin/kamailio[20259]:
        ERROR: rls [notify.c:280]: updating in hash table <br>
        Mar 29 13:57:51 supernode /usr/sbin/kamailio[20259]: ERROR: rls
        [notify.c:150]: in function agg_body_sendn_update <br>
        Mar 29 13:57:51 supernode /usr/sbin/kamailio[20259]: ERROR: rls
        [subscribe.c:638]: failed sending full state notify <br>
        Mar 29 13:57:51 supernode /usr/sbin/kamailio[20259]: ERROR: rls
        [subscribe.c:678]: occured in rls_handle_subscribe <br>
      </blockquote>
      I believe this is happening because send_full_notify() is called
      after update_rlsubs() is called in rls_handle_subscribe(). 
      update_rlsubs() will delete the entry from the hash table when
      "Expires: 0" is set - as is the case for an unSUBSCRIBE.<br>
      <br>
      Can anyone suggest what the correct behaviour should be?<br>
    </blockquote>
    <br>
    <blockquote cite="mid:1301407829.3063.11.camel@pd-laptop-linux"
      type="cite">
      <br>
      Thanks,<br>
      <br>
      Peter
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>