<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> <?xml version="1.0" encoding="UTF-8" standalone="no"?><resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"><list name="Work"><entry uri="<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>"><display-name>9012732005</display-name></entry><entry uri="<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>"><display-name>9013349020</display-name></entry></list><list name="RootGroup"/></resource-lists> 4 9b67239aba25756f119fbcce38b156f3 0 index 0</div>
<div> </div><div><br>523 <a href="http://9012732009irock.com">9012732009irock.com</a> <?xml version="1.0" encoding="UTF-8" standalone="no"?><ruleset xmlns="urn:ietf:params:xml:ns:common-policy"><rule id="presence_allow"><conditions><identity><one id="<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>"/><one id="<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>"/></identity></conditions><actions><sub-handling xmlns="urn:ietf:params:xml:ns:pres-rules">allow</sub-handling></actions><transformations><provide-devices xmlns="urn:ietf:params:xml:ns:pres-rules"><all-devices/></provide-devices><provide-persons xmlns="urn:ietf:params:xml:ns:pres-rules"><all-persons/></provide-persons><provide-services xmlns="urn:ietf:params:xml:ns:pres-rules"><all-services/></provide-services></transformations></rule></ruleset> 2 7389ddfe17038e107feb98b0382ed1a9 0 index.xml 0</div>
<div> </div><div>1291 9012732009 <a href="http://irock.com">irock.com</a> <?xml version="1.0" encoding="UTF-8"?>\n <rls-services xmlns="urn:ietf:params:xml:ns:rls-services"\n xmlns:rl="urn:ietf:params:xml:ns:resource-lists"\<br>
n xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">\n">http://www.w3.org/2001/XMLSchema-instance">\n</a> <service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>">\n <resource-list><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></resource-list>\n <packages>\n <package>presence</package>\n </packages>\n </service>\n <service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>">\n <<br>
list name="9012732009-list">\n <rl:entry uri="<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>"/>\n <rl:entry uri="<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>"/>\n </list>\n <packages>\n <package>prese<br>
nce</package>\n </packages>\n </service>\n </rls-services>\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="9012732009", realm="<a href="http://irock.com">irock.com</a>", nonce="332840634855165799770139975774574805066135619005395955328", uri="/xcap-root/rls-services/users/<a href="http://sip:9012732009@irock.com/index">sip:9012732009@irock.com/index</a>", response="f76c6a6375156936cb0c5d6137a325ad", opaque="0a430b4a4d580e7d473c2697c9d61477-MzMyODQwNjM0ODU1MTY1Nzk5NzcwMTM5OTc1Nzc0NTc0ODA1MDY2MTM1NjE5MDA1Mzk1OTU1MzI4LDE3My4yMDMuODEuMTExLDEzMjc4MTQzOTE=", algorithm="MD5", qop=auth, nc=00000001, cnonce="dfd8addb86008b0e".<br>
.</div><div>##<br>T 2012/01/28 23:19:51.385478 173.X.X.X:39849 -> 173.X.X.X:80 [AP]<br><?xml version="1.0" encoding="UTF-8"?><br> <rls-services xmlns="urn:ietf:params:xml:ns:rls-services"<br>
xmlns:rl="urn:ietf:params:xml:ns:resource-lists"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><br> <service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>"><br>
<resource-list><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></resource-list><br>
<packages><br> <package>presence</package><br> </packages><br> </service><br> <service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>"><br>
<list name="9012732009-list"><br> <rl:entry uri="<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>"/><br> <rl:entry uri="<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>"/><br>
</list><br> <packages><br> <package>presence</package><br> </packages><br> </service><br> </rls-services></div><div>####<br>T 2012/01/28 23:19:52.641120 173.X.X.X:80 -> 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: "0a66a8b47732adca8badebeece871fe4".<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>"The URI in the "uri" attribute of the <service> element MUST be<br>
unique amongst all other URIs in "uri" elements in any <service><br> element in any document on a particular server"</div><div> </div><div>If I am reading this correctly it is telling me that "<service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>">" 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>
"If a server is asked to set the URI to something that already<br> exists, the server MUST reject the request with a 409,"</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"><<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>></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't see it, sorry about that.<br>
<div class="im"><br>
On Mar 14, 2012, at 8:12 PM, Duane Larson wrote:<br>
<br>
> Saul,<br>
><br>
</div><div class="im">> I sent them to your email address directly. Let me know if you didn't get that email.<br>
><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'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>
<service uri="<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>"><br>
<list name="<a href="tel:9012732009" value="+19012732009">9012732009</a>-list"><br>
</div> <rl:entry uri="<a href="mailto:sip%3A9012732005@xxxxxxxxxxxxxx.com">sip:9012732005@xxxxxxxxxxxxxx.com</a>"/><br>
<rl:entry uri="<a href="mailto:sip%3A9013349020@xxxxxxxxxxxxxx.com">sip:9013349020@xxxxxxxxxxxxxx.com</a>"/><br>
<div class="im"> </list><br>
<packages><br>
<package>presence</package><br>
</packages><br>
</service><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>