<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>have you run with debug=3 and tried to figure out if log messages
      provide any useful hints?</p>
    <p>Also, on xcap updates, there are some functions that need to be
      used to signal the update to presence modules.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 18.11.22 20:33, Joey Golan wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAOPBYfHikYXKSRga5Mnf+fgUisrDk5PgHoCZ7anMgqqAmnU-w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Hello,</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">I'm using Kamailio v5.6.2 with presence,
          presence_xml, xcap_server, and rls modules.</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">I pushed 2 documents to the xcap server:</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">1. urn:ietf:params:xml:ns:resource-lists</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><?xml version="1.0" encoding="UTF-8"
          standalone="no"?></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><resource-lists
          xmlns="urn:ietf:params:xml:ns:resource-lists"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><list name="friends"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><entry uri="<a
            href="mailto:sip%3A1001@example.com" moz-do-not-send="true">sip:1001@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><display-name>1001</display-name></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></entry></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><entry uri="<a
            href="mailto:sip%3A1002@example.com" moz-do-not-send="true">sip:1002@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><display-name>1002</display-name></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></entry></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></list></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></resource-lists></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">2. urn:ietf:params:xml:ns:rls-services</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><?xml version="1.0" encoding="UTF-8"
          standalone="no"?></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><rls-services
          xmlns="urn:ietf:params:xml:ns:rls-services"
          xmlns:rl="urn:ietf:params:xml:ns:resource-lists" xmlns:xsi="<a
            href="http://www.w3.org/2001/XMLSchema-instance"
            moz-do-not-send="true" class="moz-txt-link-freetext">http://www.w3.org/2001/XMLSchema-instance</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><service uri="<a
            href="mailto:sip%3A1000%2Bpresence@example.com"
            moz-do-not-send="true">sip:1000+presence@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><resource-list><a
href="https://kamailio:5061/xcap-root/resource-lists/users/sip:1000@example.com/index/~~/resource-lists/list[@name="
            moz-do-not-send="true" class="moz-txt-link-freetext">https://kamailio:5061/xcap-root/resource-lists/users/sip:1000@example.com/index/~~/resource-lists/list[@name=</a>"friends"]</resource-list></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><packages></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><package>presence</package></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></packages></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></service></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></rls-services></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">I'm subscribing to presence event on rls-service</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">SUBSCRIBE <a
            href="mailto:sip%3A1000%2Bpresence@example.com"
            moz-do-not-send="true">sip:1000+presence@example.com</a>
          SIP/2.0</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Via: SIP/2.0/TLS
10.255.0.3:33883;rport;branch=z9hG4bKPjbe079f60-d0e0-4f1e-9f93-b18e467be5e8;alias</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Max-Forwards: 70</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">From: "1000" <<a
            href="mailto:sip%3A1000@example.com" moz-do-not-send="true">sip:1000@example.com</a>>;tag=97ef0748-da39-442f-9a02-468b67134ad6</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">To: <<a
            href="mailto:sip%3A1000%2Bpresence@example.com"
            moz-do-not-send="true">sip:1000+presence@example.com</a>></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Contact:
          <a class="moz-txt-link-rfc2396E" href="sip:20416583@10.255.0.3:5061;transport=tls"><sip:20416583@10.255.0.3:5061;transport=tls></a></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Call-ID: 9773a68c-b001-49f0-9ffa-093beb3d8e36</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">CSeq: 18636 SUBSCRIBE</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Event: presence</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Expires: 600</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Supported: 100rel, replaces, norefersub, gruu</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Accept: multipart/related, application/rlmi+xml,
          application/pidf+xml</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Allow-Events: presence</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Supported: eventlist</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">User-Agent: sipsimple 5.2.6</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-Length:  0</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">The RLS sends a NOTIFY immediately upon accepting
          the subscription according to RFC 4662 and also the RLS is
          virtually subscribing to the presence event on the 2 resources
          in the friends list</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">NOTIFY <a class="moz-txt-link-freetext" href="sip:20416583@10.255.0.3:5061;transport=tls">sip:20416583@10.255.0.3:5061;transport=tls</a>
          SIP/2.0</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Via: SIP/2.0/TLS
joey-local-proxy.example.com:5061;branch=z9hG4bKa93d.b63e0697000000000000000000000000.0</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">To: <<a href="mailto:sip%3A1000@example.com"
            moz-do-not-send="true">sip:1000@example.com</a>>;tag=97ef0748-da39-442f-9a02-468b67134ad6</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">From: <<a
            href="mailto:sip%3A1000%2Bpresence@example.com"
            moz-do-not-send="true">sip:1000+presence@example.com</a>>;tag=e02a02cb113b2bdb8ebdb022d767e6d2-a1677c19</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">CSeq: 1 NOTIFY</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Call-ID: 9773a68c-b001-49f0-9ffa-093beb3d8e36</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-Length: 468</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Max-Forwards: 70</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Event: presence</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Contact: <<a
            href="http://sip:kamailio@example.com:5060"
            moz-do-not-send="true">sip:kamailio@example.com:5060</a>></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Subscription-State: active;expires=600</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Require: eventlist</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-Type:
multipart/related;type="application/rlmi+xml";start="<a class="moz-txt-link-rfc2396E" href="mailto:1668755827.sip:1000+presence@example.com.1700642067"><1668755827.sip:1000+presence@example.com.1700642067></a>";boundary="1W1NaaaIIq6dOtLRXODFwqmC"</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">--1W1NaaaIIq6dOtLRXODFwqmC</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-Transfer-Encoding: binary</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-ID:
          <a class="moz-txt-link-rfc2396E" href="mailto:1668755827.sip:1000+presence@example.com.1700642067"><1668755827.sip:1000+presence@example.com.1700642067></a></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Content-Type: application/rlmi+xml;charset="UTF-8"</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><?xml version="1.0"?></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><list uri="<a
            href="mailto:sip%3A1000%2Bpresence@example.com"
            moz-do-not-send="true">sip:1000+presence@example.com</a>"
          xmlns="urn:ietf:params:xml:ns:rlmi" version="1"
          fullState="true"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">  <resource uri="<a
            href="mailto:sip%3A1001@example.com" moz-do-not-send="true">sip:1001@example.com</a>"/></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">  <resource uri="<a
            href="mailto:sip%3A1002@example.com" moz-do-not-send="true">sip:1002@example.com</a>"/></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></list></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">--1W1NaaaIIq6dOtLRXODFwqmC--</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Now I’m changing the resource list using XCAP.<span
            class="gmail-Apple-converted-space"> </span></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">I’m sending a PUT request with a new document and
          I see that the change is pushed to the DB but user 1000 is not
          receiving a NOTIFY with the updated list.</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">This is the updated document:</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><?xml version="1.0" encoding="UTF-8"
          standalone="no"?></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><resource-lists
          xmlns="urn:ietf:params:xml:ns:resource-lists"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><list name="friends"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><entry uri="<a
            href="mailto:sip%3A1001@example.com" moz-do-not-send="true">sip:1001@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><display-name>1001</display-name></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></entry></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><entry uri="<a
            href="mailto:sip%3A1002@example.com" moz-do-not-send="true">sip:1002@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><display-name>1002</display-name></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></entry></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><entry uri="<a
            href="mailto:sip%3A1003@example.com" moz-do-not-send="true">sip:1003@example.com</a>"></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""><display-name>1003</display-name></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></entry></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></list></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue""></resource-lists></p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">I see that Kamailio is virtually subscribing on
          1003 (The newly added user) but NOTIFY is not received.</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Also tried to subscribe on xcap-diff event, and
          the subscription was accepted successfully but no NOTIFY is
          received.</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Am I missing something?</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Thanks,</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue"">Joey</p>
        <p
style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:"Helvetica
          Neue";min-height:15px"><br>
        </p>
        <br class="gmail-Apple-interchange-newline">
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>