<div>Thanks you Anca and Adrian for your answer.</div>
<div>Regading the issue with the parameter in the R-URI, I was asking if the PS shouldn't use the To header, but I don't find references on that any more...</div>
<div> </div>
<div>I'll feed back to Mercuro developers in order to remove parameters from services URI.</div>
<div> </div>
<div>Adrian, when you're talking about external XCAP documents, do you mean the use of resource-list tag in rls-services document ?</div>
<div> </div>
<div>Eric.</div>
<div><br><br> </div>
<div class="gmail_quote">2008/12/15 Adrian Georgescu <span dir="ltr"><<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="WORD-WRAP: break-word">Hello Eric,
<div><br></div>
<div>To avoid backdoors and possibility of exploiting the Presence server code by end-user provisioning we will actually add checks in OpenXCAP server for the actual content of RLS services document so that it contins only routable sip uris, without any parameters. Also pointers to external XCAP documents even if they are mentioned in the RFC will no be allowed in our server as it could generate endless loops.</div>
<div><br></div>
<div>So I encourage you not to use any SIP Uris different than user@domain as you will not be able to manipulate them in the next version.</div>
<div><br></div>
<div>Regards,</div>
<div>Adrian</div><font color="#888888">
<div><br></div></font>
<div>
<div>
<div>
<div></div>
<div class="Wj3C7c">
<div>On Dec 12, 2008, at 6:13 PM, Eric PTAK wrote:</div><br></div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="Wj3C7c">
<div>Hi all,</div>
<div> </div>
<div>I'm currently integrating OpenSIPS with OpenXCAP.</div>
<div>After a lot a problem with ubuntu libraries in order to setup openxcap, I'm now facing to another issue with RLS module.</div>
<div>I'm using Mercuro and it subsribes to <a>sip:alice@domain;pres-list=Default</a>, but the RLS looks for a service at <a>sip:alice@domain</a> so it response by a 404 Not Found error.</div>
<div> </div>
<div>This is the xml files from xcap :</div>
<div> </div>
<div><a href="mailto:eptak@rd-srv-devlnx2:~$" target="_blank">eptak@rd-srv-devlnx2:~$</a> xcapclient --app rls-services get<br>get <a href="http://10.26.52.122:8080/xcap-root/rls-services/users/sip:alice@domain/index" target="_blank">http://10.26.52.122:8080/xcap-root/rls-services/users/sip:alice@domain/index</a><br>
etag: "d113935c4c7324c99077a925492251b2"<br>content-type: application/rls-services+xml<br>content-length: 467<br><?xml version="1.0" encoding="utf-8"?><br><rls-services xmlns:rl="<a>urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a>urn:ietf:params:xml:ns:rls-services</a>"><br>
<service uri="<a>sip:alice@domain;pres-list=Default</a>"><br> <resource-list><a href="http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d" target="_blank">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a></resource-list><br>
<packages><br> <package>presence</package><br> </packages><br> </service><br></rls-services></div>
<div><br><a href="mailto:eptak@rd-srv-devlnx2:~$" target="_blank">eptak@rd-srv-devlnx2:~$</a> xcapclient --app resource-lists get<br>get <a href="http://10.26.52.122:8080/xcap-root/resource-lists/users/sip:alice@domain/index" target="_blank">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip:alice@domain/index</a><br>
etag: "e153e7e4688122a04434b77cd1ecb5e1"<br>content-type: application/resource-lists+xml<br>content-length: 324<br><?xml version="1.0" encoding="utf-8"?><br><resource-lists xmlns="<a>urn:ietf:params:xml:ns:resource-lists</a>"><br>
<list name="Default"><br> <display-name>All Contacts</display-name><br> <entry uri="<a>sip:bob@domain</a>" xmlns="<a>urn:ietf:params:xml:ns:resource-lists</a>"><br>
<display-name>bob</display-name><br></entry></list><br></resource-lists><br></div>
<div>and this is the stack trace :</div>
<div> </div>
<div>Dec 12 15:17:15 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: SUBSCRIBE presence from <a>sip:alice@domain</a> to <a>sip:alice@domain;pres-list=Default</a> (Mercuro IMS Client Beta (4.0.1011.0))<br>Dec 12 15:17:15 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:core:parse_headers: flags=ffffffffffffffff<br>
Dec 12 15:17:15 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:core:parse_headers: flags=ffffffffffffffff<br>Dec 12 15:17:15 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:presence:search_event: start event= [presence]<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:rls:rls_handle_subscribe: 'To' header ALREADY PARSED: <<a>sip:alice@domain;pres-list=Default</a>><br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:rls:get_resource_list: Searched RL document for user <a>sip:alice@domain</a><br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:core:db_new_result: allocate 28 bytes for result set at 0x81b52b0<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: 2 columns returned from the query<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:core:db_allocate_columns: allocate 8 bytes for result names at 0x81b5af8<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:core:db_allocate_columns: allocate 8 bytes for result types at 0x81b5360<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: allocate 8 bytes for RES_NAMES[0] at 0x81b5820<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x81b5820)[0]=[doc]<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: use DB_BLOB result type<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: allocate 8 bytes for RES_NAMES[1] at 0x81b5838<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x81b5838)[1]=[etag]<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_convert_rows: allocate 8 bytes for rows at 0x81b5948<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_convert_row: allocate 40 bytes for row values at 0x81b5860<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_str2val: converting BLOB [<?xml version="1.0" encoding="utf-8"?>^M <rls-services xmlns:rl="<a>urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a>urn:ietf:params:xml:ns:rls-services</a>">^M <service uri="<a>sip:alice@domain;pres-list=Default</a>">^M <resource-list><a href="http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d" target="_blank">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a></resource-list>^M <packages>^M <package>presence</package>^M </packages>^M </service>^M </rls-services>]<br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:db_mysql:db_mysql_str2val: converting STRING [d113935c4c7324c99077a925492251b2]<br>Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:rls:get_resource_list: rls_services document: <?xml version="1.0" encoding="utf-8"?>^M <rls-services xmlns:rl="<a>urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a>urn:ietf:params:xml:ns:rls-services</a>">^M <service uri="<a>sip:alice@domain;pres-list=Default</a>">^M <resource-list><a href="http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d" target="_blank">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a></resource-list>^M <packages>^M <package>presence</package>^M </packages>^M </service>^M </rls-services><br>
Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:rls:get_resource_list: service uri <a>sip:alice@domain</a> not found in rl document for user <a>sip:alice@domain</a><br></div></div></div>
<div class="Ih2E3d">_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">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></blockquote></div><br></div></div></blockquote></div><br>