<!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">
    Hi Peter,<br>
    <br>
    Which version exactly did you use? There was a bug in the first
    version that I fixed last week. <br>
    Also can you please tell me with what db mode you are using?<br>
    <br>
    Regards,<br>
    Anca<br>
    <br>
    <br>
    <br>
    On 02/29/2012 02:19 PM, Peter Dunkley wrote:
    <blockquote cite="mid:1330517948.3428.4.camel@pd-laptop-linux"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="GENERATOR" content="GtkHTML/4.2.3">
      Hi,<br>
      <br>
      I just tried this updated presence module and ran into some
      problems.<br>
      <br>
      The scenario I use is presence and RLS.  The client SUBSCRIBEs to
      a single resource list on the RLS and to presence.winfo on the
      PS.  The client PUBLISHes to the PS.<br>
      <br>
      With the new code I get two error messages out a lot:<br>
      <blockquote> Feb 29 11:31:18 pd-laptop-linux ./kamailio[22566]:
        ERROR: presence [subscribe.c:799]: wrong status<br>
        Feb 29 11:32:39 pd-laptop-linux ./kamailio[22566]: ERROR:
        presence [subscribe.c:1314]: wrong sequence number received: 4 -
        stored: 10<br>
      </blockquote>
      <br>
      I also get segmentation faults when I change presence state or log
      out.  Here is a fragment of the back-trace:<br>
      <blockquote> #0  0x00007f0447191438 in get_subs_db
        (pres_uri=0x7fff0ce09ea0, event=0x7f0443f15728,
        sender=&lt;optimized out&gt;, s_array=0x7fff0ce09bf0,
        n=0x7fff0ce09c00) at notify.c:1120<br>
        #1  0x00007f044719375f in get_subs_dialog
        (pres_uri=0x7fff0ce09ea0, event=0x7f0443f15728, sender=0x0) at
        notify.c:1238<br>
        #2  0x00007f04471994ce in query_db_notify
        (pres_uri=0x7fff0ce09ea0, event=0x7f0443f15728,
        watcher_subs=0x0) at notify.c:1353<br>
        #3  0x00007f04471b024e in update_subscription
        (msg=0x7f044d36ec38, subs=0x7fff0ce09ea0,
        to_tag_gen=&lt;optimized out&gt;, sent_reply=0x7fff0ce09ff0) at
        subscribe.c:452<br>
        #4  0x00007f04471be82a in handle_subscribe (msg=0x7f044d36ec38,
        str1=&lt;optimized out&gt;, str2=&lt;optimized out&gt;) at
        subscribe.c:805<br>
        #5  0x00000000004e50c5 in do_action (h=0x7fff0ce0c950,
        a=&lt;optimized out&gt;, msg=0x7f044d36ec38) at action.c:1116<br>
      </blockquote>
      I rolled back to the previous version of presence and it all works
      correctly as before.<br>
      <br>
      Thanks,<br>
      <br>
      Peter<br>
    </blockquote>
    <br>
  </body>
</html>