<p>Cool. Thanks for the info.</p>
<div class="gmail_quote">On Jan 28, 2012 4:03 PM, "Adrian Georgescu" <<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The document you must create for RLS is called rls-services. What you pasted resource-lists and pre-rules documents, which is something else. See RFC 4825.<br>
<br>
Adrian<br>
<br>
<br>
On Jan 28, 2012, at 8:26 PM, <a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:<br>
<br>
> Adrian,<br>
><br>
> This is what I have in the xcap table for user <a href="tel:9012732009" value="+19012732009">9012732009</a>.<br>
><br>
> 527 <a href="tel:9012732009" value="+19012732009">9012732009</a> <a href="http://irock.com" target="_blank">irock.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><a href="tel:9012732005" value="+19012732005">9012732005</a></display-name></entry><entry uri="<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>"><display-name><a href="tel:9013349020" value="+19013349020">9013349020</a></display-name></entry></list><list name="RootGroup"/></resource-lists> 4 9b67239aba25756f119fbcce38b156f3 0 index 0<br>
><br>
><br>
><br>
><br>
> 523 <a href="tel:9012732009" value="+19012732009">9012732009</a> <a href="http://irock.com" target="_blank">irock.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<br>
><br>
><br>
><br>
> The first I would think is a contact list right? My Presence works fine with these XCAP docs.<br>
><br>
> On , Adrian Georgescu <<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>> wrote:<br>
> > RLS is a way to expand in the SIP server a single subscription sent to a SIP address into multiple subscriptions to a list of addresses defined in XCAP server rls-services document.<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Your error 5 means that your have no contacts list defined in the rls-services document for sip uri <a href="mailto:9012732009@irock.com">9012732009@irock.com</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > You must build the list of contacts for <a href="mailto:9012732009@irock.com">9012732009@irock.com</a>, upload it using HTTP PUT to the XCAP server rls-services document and finally subscribe to <a href="mailto:9012732009@irock.com">9012732009@irock.com</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Adrian<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Jan 27, 2012, at 2:15 AM, <a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > > I am trying to get Snom's Contact List to work with RLS and XCAP. When I enable the Snom phone it sends the following subscribe<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > SUBSCRIBE <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>;user=phone SIP/2.0<br>
> ><br>
> ><br>
> > > Via: SIP/2.0/UDP 192.168.1.70:3072;branch=z9hG4bK-o82o6mip4krp;rport<br>
> ><br>
> ><br>
> > > From: <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>>;tag=uqpj4kshg7<br>
> ><br>
> ><br>
> > > To: <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>;user=phone><br>
> ><br>
> ><br>
> > > Call-ID: c60b313ccc40-ul069icazcpv<br>
> ><br>
> ><br>
> > > CSeq: 1 SUBSCRIBE<br>
> ><br>
> ><br>
> > > Max-Forwards: 70<br>
> ><br>
> ><br>
> > > Contact: ;reg-id=1<br>
> ><br>
> ><br>
> > > Event: presence<br>
> ><br>
> ><br>
> > > Accept: application/pidf+xml, application/rlmi+xml, multipart/related<br>
> ><br>
> ><br>
> > > Supported: eventlist<br>
> ><br>
> ><br>
> > > User-Agent: snom821/8.4.31<br>
> ><br>
> ><br>
> > > Expires: 3600<br>
> ><br>
> ><br>
> > > Content-Length: 0<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > With my OpenSIPS config I have<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > # -- rls params --<br>
> ><br>
> ><br>
> > > modparam("rls", "db_url", "mysql://opensips:****@<a href="http://127.0.0.1/opensips" target="_blank">127.0.0.1/opensips</a>")<br>
> ><br>
> ><br>
> > > modparam("rls", "server_address", "sip:rls@sdfsdfsdf:5060")<br>
> ><br>
> ><br>
> > > modparam("rls", "to_presence_code", 5)<br>
> ><br>
> ><br>
> > > modparam("rls", "integrated_xcap_server", 1)<br>
> ><br>
> ><br>
> > > modparam("rls", "presence_server", "sip:sa@asdfsadfsd:5060")<br>
> ><br>
> ><br>
> > > modparam("rls", "rls_event", "xcap-diff")<br>
> ><br>
> ><br>
> > > modparam("rls", "rls_event", "ua-profile")<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > rls_handle_subscribe();<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > switch ($retcode) {<br>
> ><br>
> ><br>
> > > case 5:<br>
> ><br>
> ><br>
> > > # RLS indicated that message should be processed by presence<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > if (is_uri_host_local()) {<br>
> ><br>
> ><br>
> > > if (db_does_uri_exist()) {<br>
> ><br>
> ><br>
> > > handle_subscribe();<br>
> ><br>
> ><br>
> > > } else {<br>
> ><br>
> ><br>
> > > t_reply("404", "User not found");<br>
> ><br>
> ><br>
> > > }<br>
> ><br>
> ><br>
> > > exit;<br>
> ><br>
> ><br>
> > > }<br>
> ><br>
> ><br>
> > > break;<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > I see with xlog messages that rls_handle_subscribe() fails with a "case 5". I am not sure why the Snom SUBSCRIBE would fail with a "5".<br>
> ><br>
> ><br>
> > ><br>
> ><br>
> ><br>
> > > I've looked at <a href="http://www.opensips.org/Resources/Rls" target="_blank">http://www.opensips.org/Resources/Rls</a> and the SUBSCRIBE from SNOM really isn't that different. So why does "rls_handle_subscribe()" fail?_______________________________________________<br>
> ><br>
> ><br>
> > > Users mailing list<br>
> ><br>
> ><br>
> > > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> ><br>
> ><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>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> ><br>
> ><br>
> > Users mailing list<br>
> ><br>
> ><br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> ><br>
> ><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>
> ><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>
<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>
</blockquote></div>