Hi Anca, I tried with the xml document that you have mentioned in the below mail.. rls_handle_subscribe is failing. Below is the log:
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="http://www.w3.org/2001/XMLSchema-instance"><service uri="sip:[EMAIL PROTECTED]"> <list name="friends"><entry uri="sip:[EMAIL PROTECTED]"/><entry uri="sip:[EMAIL PROTECTED]"/></list><packages><package>presence</package></packages></service></rls-services> Nov 14 14:48:48 info opensips[11679]: INFO:rls:search_service_uri: service uri is : sip:[EMAIL PROTECTED] and uri we are searching for is : sip:[EMAIL PROTECTED] Nov 14 14:48:48 info opensips[11679]: ERROR:rls:get_resource_list: entry uri sip:[EMAIL PROTECTED] not found in rl document for user sip:[EMAIL PROTECTED] Nov 14 14:48:48 info opensips[11679]: ERROR:rls:rls_handle_subscribe: while attepmting to get a resource list Nov 14 14:48:48 info opensips[11679]: ERROR:rls:rls_handle_subscribe: failed Does this mean that, I need to send subscribe for [EMAIL PROTECTED] in the subscribe message from UE itself? Please let me know. Regards, Mahesh Peddi ----- Original Message ----- From: Anca Vamanu To: Yoo Chan Jeon Cc: [email protected] Sent: Thursday, November 13, 2008 7:25 PM Subject: Re: [OpenSIPS-Users] RLS change from the latest trunk svn Hi Jeon, You spotted the changes very well :) . They are listed in commit log for revision 4854: - 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 However they are also present in the 1.4 svn branch. The reason for this changes are to fix some problems that we discovered at SIPIT, Lannion. I used a wrong document to get the list - "resouce-list" document. The right one that is used now is "rls-services". 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. 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. The description of the rls-services document is here:http://www.ietf.org/rfc/rfc4826.txt Here is an example: <?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="http://www.w3.org/2001/XMLSchema-instance"> <service uri="sip:[EMAIL PROTECTED]"> <list name="friends"> <entry uri="sip:[EMAIL PROTECTED]"/> <entry uri="sip:[EMAIL PROTECTED]"/> </list> <packages> <package>presence</package> </packages> </service> </rls-services> regards, Anca Yoo Chan Jeon wrote: Hello, I downloaded the latest codes from trunk svn in Nov 3rd. The revision is 4889. There are some differences between 1.4 and trunk. I had problems in the RLS. I looked at the get_resource_list() in the subscribe.c. There are changes from RESOURCE_LIST(4) to RLS_SERVICES(8) in the 'doc_type' column. 'username' column changes from the request-header user to the from-header user. 'domain' column chnages from the reuqest-header domain to the from-header domain. What data information should be in the xcap table now? I used to put the value 4 in the doc_type column . Thanks. Jeon . ---------------------------------------------------------------------------- _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users ------------------------------------------------------------------------------ _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
