Hi Franz, There is no problem with the document, but there is a bug in the rls server :). It doesn't work for you because you have that parameter following the uri: "sip:[email protected];pres-list=Default" in the rls-services document. I will fix that and let you know when to update your code.
Thanks and regards, Anca Franz Edler wrote: > Hi all, > > I am struggling with the resource-list-server for presence. > The problem is that the presence server responds to the SUBSCRIBE request > addressing the resource-list for presence with "404 Not Found". > > >From a debug log is get the following hints: > > ----------------------- snip ----------------------------------------------- > 101 SUBSCRIBE sip:[email protected];pres-list=Default from 10.0.0.5:6060 > From: sip:[email protected] To: sip:[email protected];pres-list=Default > > May 31 20:34:50 [2906] DBG:core:parse_headers: flags=ffffffffffffffff > > Event:presence > > May 31 20:34:50 [2906] DBG:core:parse_headers: flags=ffffffffffffffff > > May 31 20:34:50 [2906] DBG:core:parse_headers: flags=ffffffffffffffff > > May 31 20:34:50 [2906] DBG:presence:search_event: start event= [presence] > > May 31 20:34:50 [2906] DBG:rls:rls_handle_subscribe: 'To' header ALREADY > PARSED: <sip:[email protected];pres-list=Default> > > May 31 20:34:50 [2906] DBG:rls:get_resource_list: Searched RL document > for user sip:[email protected] > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_submit_query: discon reset > for 135940880 > > May 31 20:34:50 [2906] DBG:core:db_do_query: SYNC-DBG - SELECT > successfully executed! > > May 31 20:34:50 [2906] DBG:core:db_new_result: allocate 28 bytes for > result set at 0x81a6ce8 > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_store_result: SYNC-DBG - > SELECT result was stored! > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_get_columns: 2 columns > returned from the query > > May 31 20:34:50 [2906] DBG:core:db_allocate_columns: allocate 32 bytes > for result columns at 0x819fdd0 > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_get_columns: > RES_NAMES(0x819fdd8)[0]=[doc] > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_get_columns: use DB_BLOB > result type > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_get_columns: > RES_NAMES(0x819fde0)[1]=[etag] > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_get_columns: use DB_STRING > result type > > May 31 20:34:50 [2906] DBG:core:db_allocate_rows: allocate 48 bytes for > result rows and values at 0x81a74a8 > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_str2val: converting BLOB > [<?xml version="1.0" encoding="utf-8"?> > > <rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists" > xmlns="urn:ietf:params:xml:ns:rls-services"> > > <service uri="sip:[email protected];pres-list=Default"> > > > <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal > ice%40net1.test/index/~~/resource-lists/list...@name=%22default%22%5d</resou > rce-list> > <packages> > > <package>presence</package> > > </packages> > > </service> > > </rls-services>] > > May 31 20:34:50 [2906] DBG:db_mysql:db_mysql_str2val: converting STRING > [435b206f65bbf886c2c3873f154d363d] > > May 31 20:34:50 [2906] DBG:rls:get_resource_list: rls_services document: > > <?xml version="1.0" encoding="utf-8"?> > > <rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists" > xmlns="urn:ietf:params:xml:ns:rls-services"> > > <service uri="sip:[email protected];pres-list=Default"> > > > <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal > ice%40net1.test/index/~~/resource-lists/list...@name=%22default%22%5d</resou > rce-list> > <packages> > > <package>presence</package> > > </packages> > > </service> > > </rls-services> > May 31 20:34:50 [2906] DBG:rls:get_resource_list: service uri > sip:[email protected] not found in rl document for user sip:[email protected] > > ----------------------- snip ----------------------------------------------- > > The last line obviously shows the problem: > get_resource_list: service uri sip:[email protected] not found in rl > document for user sip:[email protected] > > What "service uri" is missing in the resource-list document? > The SUBSCRIBE request is addressed to sip:[email protected] (see 1st line) > The resource-list document in the XCAP-table for user alice looks as > follows: > > <?xml version="1.0" encoding="utf-8"?> > > <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"> > > <list name="Default"> > > <display-name>All Contacts</display-name> > > <entry uri="sip:[email protected]" > xmlns="urn:ietf:params:xml:ns:resource-lists"> > <display-name>bob</display-name> > > </entry></list> > > </resource-lists> > > What is wrong with that document? > Maybe anyone can help. > > regards > Franz > > > _______________________________________________ > 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
