<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>Hi Anca,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I tried with the xml document that you have
mentioned in the below mail.. rls_handle_subscribe is failing. <BR>Below is the
log:</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Nov 14 14:48:48 info opensips[11679]:
DBG:rls:get_resource_list: rls_services document: <?xml version="1.0"
encoding="UTF-8"?><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"><service'>http://www.w3.org/2001/XMLSchema-instance"><service</A>
uri="sip:alice-list@mydomain.com"> <list name="friends"><entry
uri="sip:alice@mydomain.com"/><entry
uri="sip:bob@mydomain.com"/></list><packages><package>presence</package></packages></service></rls-services></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Nov 14 14:48:48 info opensips[11679]:
INFO:rls:search_service_uri: service uri is : sip:alice-list@mydomain.com and
uri we are searching for is : sip:alice@mydomain.com</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Nov 14 14:48:48 info opensips[11679]:
ERROR:rls:get_resource_list: entry uri sip:alice@mydomain.com not found in rl
document for user sip:alice@mydomain.com</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Nov 14 14:48:48 info opensips[11679]:
ERROR:rls:rls_handle_subscribe: while attepmting to get a resource
list</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Nov 14 14:48:48 info opensips[11679]:
ERROR:rls:rls_handle_subscribe: failed</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV><FONT face=Verdana size=2>
<DIV><BR>Does this mean that, I need to send subscribe for <A
href="mailto:alice-list@mydomain.com">alice-list@mydomain.com</A> in the
subscribe message from UE itself?<BR>Please let me know.</DIV>
<DIV> </DIV>
<DIV>Regards,</FONT></DIV>
<DIV>Mahesh Peddi<BR><BR></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=anca@voice-system.ro href="mailto:anca@voice-system.ro">Anca
Vamanu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=yoojeon@gmail.com
href="mailto:yoojeon@gmail.com">Yoo Chan Jeon</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=users@lists.opensips.org
href="mailto:users@lists.opensips.org">users@lists.opensips.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, November 13, 2008 7:25
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [OpenSIPS-Users] RLS change
from the latest trunk svn</DIV>
<DIV><BR></DIV>Hi Jeon,<BR><BR>You spotted the changes very well :) . <BR>They
are listed in commit log for revision <A
href="http://opensips.svn.sourceforge.net/viewvc/opensips?view=rev&revision=4854"><STRONG>4854:</STRONG></A><BR><PRE class=vc_log><I>- fixed bugs in RLS discovered at SIPIT
        - use rls-services document to take the list instead of resource-list document
        - send 200 OK faster so that retransmissions don't occur because of time consuming processing
        - added presence_server exported parameter to have the possibility to set the address of the presence server and avoid Subscribe messages beeing sent by the RLS bouncing on and off the main proxy
</I></PRE><BR>However they are also present in the 1.4 svn branch.<BR>The
reason for this changes are to fix some problems that we discovered at SIPIT,
Lannion. <BR>I used a wrong document to get the list - "resouce-list"
document. The right one that is used now is "rls-services". <BR>Also we
decided to make the list documents accessible only by the user that created
them. This is the reason for which in database in columns username and domain
will not be the list uri ( contained in R-URI for Subscribe), but the
identifications for the user sending the request - from header uri. <BR>So you
need to a document of type RLS_SERVICES(8) in database with a 'service' node
having attribute 'uri=list_uri'. RLS will search in the document and try to
match the value of uri attribute with R-URI for subscribe.<BR>The description
of the rls-services document is here:<A
href="http://www.ietf.org/rfc/rfc4826.txt">http://www.ietf.org/rfc/rfc4826.txt</A><BR>Here
is an example:<BR><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 class=moz-txt-link-rfc2396E
href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</A>><BR>
<service uri=<A class=moz-txt-link-rfc2396E
href="sip:anca-list@opensips.org">"sip:anca-list@opensips.org"</A>><BR>
<list name="friends"><BR>
<entry uri=<A class=moz-txt-link-rfc2396E
href="sip:test1@opensips.org">"sip:test1@opensips.org"</A>/><BR>
<entry uri=<A
class=moz-txt-link-rfc2396E
href="sip:test2@opensips.org">"sip:test2@opensips.org"</A>/><BR>
</list><BR>
<packages><BR>
<package>presence</package><BR>
</packages><BR> </service><BR>
</rls-services><BR><BR><BR>regards,<BR>Anca<BR> <BR>Yoo Chan Jeon
wrote:
<BLOCKQUOTE
cite=mid:8db572240811121508u29b6e21aqbd2b5a8245baa00e@mail.gmail.com
type="cite">Hello,<BR><BR>I downloaded the latest codes from trunk svn
in Nov 3rd.<BR>The revision is 4889.<BR> There are some
differences between 1.4 and trunk. <BR>I had problems in the RLS.<BR>I
looked at the get_resource_list() in the subscribe.c.<BR>There are
changes from RESOURCE_LIST(4) to RLS_SERVICES(8) in the 'doc_type'
column.<BR>'username' column changes from the request-header user to the
from-header user.<BR>'domain' column chnages from the reuqest-header
domain to the from-header domain.<BR>What data information should be
in the xcap table now?<BR>I used to put the value 4
in the doc_type column .<BR><BR>Thanks.<BR><BR>Jeon
<BR><BR>.<BR><BR><BR><BR><BR><BR><BR><BR><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A>
<A class=moz-txt-link-freetext href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A>
</PRE></BLOCKQUOTE><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@lists.opensips.org<BR>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<BR></BLOCKQUOTE></BODY></HTML>