<div>Saul,</div><div> </div><div>A while back in this email thread Adrian asked if the Resource-List document existed and I showed him that it did in fact exist.  See the database entry here</div><div> </div><div>This is what I have in the xcap table for user 9012732009.</div>
<div>527     <a href="http://9012732009irock.com">9012732009irock.com</a>       &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;resource-lists xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;&lt;list name=&quot;Work&quot;&gt;&lt;entry uri=&quot;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;&gt;&lt;display-name&gt;9012732005&lt;/display-name&gt;&lt;/entry&gt;&lt;entry uri=&quot;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;&gt;&lt;display-name&gt;9013349020&lt;/display-name&gt;&lt;/entry&gt;&lt;/list&gt;&lt;list name=&quot;RootGroup&quot;/&gt;&lt;/resource-lists&gt;  4       9b67239aba25756f119fbcce38b156f3        0       index   0</div>
<div> </div><div><br>523     <a href="http://9012732009irock.com">9012732009irock.com</a>       &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;ruleset xmlns=&quot;urn:ietf:params:xml:ns:common-policy&quot;&gt;&lt;rule id=&quot;presence_allow&quot;&gt;&lt;conditions&gt;&lt;identity&gt;&lt;one id=&quot;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;/&gt;&lt;one id=&quot;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;/&gt;&lt;/identity&gt;&lt;/conditions&gt;&lt;actions&gt;&lt;sub-handling xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;allow&lt;/sub-handling&gt;&lt;/actions&gt;&lt;transformations&gt;&lt;provide-devices xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;&lt;all-devices/&gt;&lt;/provide-devices&gt;&lt;provide-persons xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;&lt;all-persons/&gt;&lt;/provide-persons&gt;&lt;provide-services xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;&lt;all-services/&gt;&lt;/provide-services&gt;&lt;/transformations&gt;&lt;/rule&gt;&lt;/ruleset&gt;    2       7389ddfe17038e107feb98b0382ed1a9        0       index.xml    0</div>
<div> </div><div>1291    9012732009      <a href="http://irock.com">irock.com</a>       &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n   &lt;rls-services xmlns=&quot;urn:ietf:params:xml:ns:rls-services&quot;\n      xmlns:rl=&quot;urn:ietf:params:xml:ns:resource-lists&quot;\<br>
n      xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;\n">http://www.w3.org/2001/XMLSchema-instance&quot;&gt;\n</a>    &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;\n     &lt;resource-list&gt;<a href="http://xcap.aethercommunications.com/xcap-root/resource-lists/u">http://xcap.aethercommunications.com/xcap-root/resource-lists/u</a><br>
sers/<a href="http://sip:9012732009@irock.com/index">sip:9012732009@irock.com/index</a>&lt;/resource-list&gt;\n     &lt;packages&gt;\n      &lt;package&gt;presence&lt;/package&gt;\n     &lt;/packages&gt;\n    &lt;/service&gt;\n    &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;\n      &lt;<br>
list name=&quot;9012732009-list&quot;&gt;\n        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;/&gt;\n        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;/&gt;\n      &lt;/list&gt;\n      &lt;packages&gt;\n        &lt;package&gt;prese<br>
nce&lt;/package&gt;\n      &lt;/packages&gt;\n    &lt;/service&gt;\n   &lt;/rls-services&gt;\n  8       0a66a8b47732adca8badebeece871fe4        0       index   0</div><div> </div><div>I created it by doing the following</div>
<div> </div><div>PUT /xcap-root/rls-services/users/<a href="http://sip:9012732009@irock.com/index">sip:9012732009@irock.com/index</a> HTTP/1.1.<br>Accept-Encoding: identity.<br>Content-Length: 798.<br>Host: <a href="http://xcap.X.com">xcap.X.com</a>.<br>
User-Agent: python-xcaplib/<a href="http://1.0.16.">1.0.16.</a><br>Connection: close.<br>Content-Type: application/x-www-form-urlencoded.<br>Authorization: Digest username=&quot;9012732009&quot;, realm=&quot;<a href="http://irock.com">irock.com</a>&quot;, nonce=&quot;332840634855165799770139975774574805066135619005395955328&quot;, uri=&quot;/xcap-root/rls-services/users/<a href="http://sip:9012732009@irock.com/index">sip:9012732009@irock.com/index</a>&quot;, response=&quot;f76c6a6375156936cb0c5d6137a325ad&quot;, opaque=&quot;0a430b4a4d580e7d473c2697c9d61477-MzMyODQwNjM0ODU1MTY1Nzk5NzcwMTM5OTc1Nzc0NTc0ODA1MDY2MTM1NjE5MDA1Mzk1OTU1MzI4LDE3My4yMDMuODEuMTExLDEzMjc4MTQzOTE=&quot;, algorithm=&quot;MD5&quot;, qop=auth, nc=00000001, cnonce=&quot;dfd8addb86008b0e&quot;.<br>
.</div><div>##<br>T 2012/01/28 23:19:51.385478 173.X.X.X:39849 -&gt; 173.X.X.X:80 [AP]<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>   &lt;rls-services xmlns=&quot;urn:ietf:params:xml:ns:rls-services&quot;<br>
      xmlns:rl=&quot;urn:ietf:params:xml:ns:resource-lists&quot;<br>      xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>    &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;<br>
     &lt;resource-list&gt;<a href="http://xcap.X.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index">http://xcap.X.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index</a>&lt;/resource-list&gt;<br>
     &lt;packages&gt;<br>      &lt;package&gt;presence&lt;/package&gt;<br>     &lt;/packages&gt;<br>    &lt;/service&gt;<br>    &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;<br>
      &lt;list name=&quot;9012732009-list&quot;&gt;<br>        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;/&gt;<br>        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;/&gt;<br>
      &lt;/list&gt;<br>      &lt;packages&gt;<br>        &lt;package&gt;presence&lt;/package&gt;<br>      &lt;/packages&gt;<br>    &lt;/service&gt;<br>   &lt;/rls-services&gt;</div><div>####<br>T 2012/01/28 23:19:52.641120 173.X.X.X:80 -&gt; 173.X.X.X:39849 [AP]<br>
HTTP/1.1 201 Created.<br>Date: Sun, 29 Jan 2012 05:19:52 GMT.<br>Content-Length: 0.<br>ETag: &quot;0a66a8b47732adca8badebeece871fe4&quot;.<br>Content-Type: application/rls-services+xml.<br>Server: OpenXCAP/<a href="http://2.0.1.">2.0.1.</a><br>
Connection: close.</div><div> </div><div> </div><div> </div><div> </div><div>I read over (RFC4826, sec 4.4.5) and it says </div><div>&quot;The URI in the &quot;uri&quot; attribute of the &lt;service&gt; element MUST be<br>
      unique amongst all other URIs in &quot;uri&quot; elements in any &lt;service&gt;<br>      element in any document on a particular server&quot;</div><div> </div><div>If I am reading this correctly it is telling me that &quot;&lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;&quot; needs to be unique.  I am pretty positive this is a unique URI and it is not created anywhere else.  Also the RFC says<br>
&quot;If a server is asked to set the URI to something that already<br>      exists, the server MUST reject the request with a 409,&quot;</div><div> </div><div>I am not seeing a 409 error.  So if I am understanding RFC4826 then I believe I have done everything right.</div>
<div> </div><div><br><br> </div><div class="gmail_quote">On Thu, Mar 15, 2012 at 3:36 AM, Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi Duane,<br>
<br>
The mail was filtered as spam so I didn&#39;t see it, sorry about that.<br>
<div class="im"><br>
On Mar 14, 2012, at 8:12 PM, Duane Larson wrote:<br>
<br>
&gt; Saul,<br>
&gt;<br>
</div><div class="im">&gt; I sent them to your email address directly.  Let me know if you didn&#39;t get that email.<br>
&gt;<br>
<br>
</div>I think I found the problem :-) You are subscribing to this service URi: <a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a> which according to the RLS services document points to the following list: <a href="http://xcap.xxxxxxx.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index" target="_blank">http://xcap.xxxxxxx.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index</a><br>

<br>
Now, that list that you are referencing needs to exist in the resources-list document, does it?<br>
<br>
I also see that you defined another service with same URI and this time there is a list item in it. The document is bogus because the service URI needs to be unique (RFC4826, sec 4.4.5). Moreover, I don&#39;t know if OpenSIPS currently supports expanding the resource-list element in the RLS document, so please test it out with the second approach, that is:<br>

<div class="im"><br>
    &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;<br>
      &lt;list name=&quot;<a href="tel:9012732009" value="+19012732009">9012732009</a>-list&quot;&gt;<br>
</div>        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9012732005@xxxxxxxxxxxxxx.com">sip:9012732005@xxxxxxxxxxxxxx.com</a>&quot;/&gt;<br>
        &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9013349020@xxxxxxxxxxxxxx.com">sip:9013349020@xxxxxxxxxxxxxx.com</a>&quot;/&gt;<br>
<div class="im">     &lt;/list&gt;<br>
      &lt;packages&gt;<br>
        &lt;package&gt;presence&lt;/package&gt;<br>
      &lt;/packages&gt;<br>
    &lt;/service&gt;<br>
<br>
</div>and remove every other service.<br>
<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>