<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Eric,<div><br></div><div>To avoid backdoors and possibility of&nbsp;exploiting&nbsp;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&nbsp;in our server as it could generate endless loops.</div><div><br></div><div>So I encourage you not to use any SIP Uris&nbsp;different&nbsp;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><div><br></div><div><div><div>On Dec 12, 2008, at 6:13 PM, Eric PTAK wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi all,</div> <div>&nbsp;</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 href="sip:alice@domain;pres-list=Default">sip:alice@domain;pres-list=Default</a>, but the RLS looks for a service at <a href="sip:alice@domain">sip:alice@domain</a> so it response by a 404 Not Found error.</div> <div>&nbsp;</div> <div>This is the xml files from xcap :</div> <div>&nbsp;</div> <div><a href="mailto:eptak@rd-srv-devlnx2:~$">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">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>&lt;?xml version="1.0" encoding="utf-8"?><br>&lt;rls-services xmlns:rl="<a href="urn:ietf:params:xml:ns:resource-lists">urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a href="urn:ietf:params:xml:ns:rls-services">urn:ietf:params:xml:ns:rls-services</a>"><br> &nbsp; &lt;service uri="<a href="sip:alice@domain;pres-list=Default">sip:alice@domain;pres-list=Default</a>"><br>&nbsp;&nbsp;&nbsp; &lt;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">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a>&lt;/resource-list><br> &nbsp;&nbsp;&nbsp; &lt;packages><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;package>presence&lt;/package><br>&nbsp;&nbsp;&nbsp; &lt;/packages><br>&nbsp; &lt;/service><br>&lt;/rls-services></div> <div><br><a href="mailto:eptak@rd-srv-devlnx2:~$">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">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>&lt;?xml version="1.0" encoding="utf-8"?><br>&lt;resource-lists xmlns="<a href="urn:ietf:params:xml:ns:resource-lists">urn:ietf:params:xml:ns:resource-lists</a>"><br> &nbsp; &lt;list name="Default"><br>&nbsp;&nbsp;&nbsp; &lt;display-name>All Contacts&lt;/display-name><br>&nbsp; &lt;entry uri="<a href="sip:bob@domain">sip:bob@domain</a>" xmlns="<a href="urn:ietf:params:xml:ns:resource-lists">urn:ietf:params:xml:ns:resource-lists</a>"><br>&nbsp; &lt;display-name>bob&lt;/display-name><br> &lt;/entry>&lt;/list><br>&lt;/resource-lists><br></div> <div>and this is the stack trace :</div> <div>&nbsp;</div> <div>Dec 12 15:17:15 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: SUBSCRIBE presence from <a href="sip:alice@domain">sip:alice@domain</a> to <a href="sip:alice@domain;pres-list=Default">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: &lt;<a href="sip:alice@domain;pres-list=Default">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 href="sip:alice@domain">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 [&lt;?xml version="1.0" encoding="utf-8"?>^M &lt;rls-services xmlns:rl="<a href="urn:ietf:params:xml:ns:resource-lists">urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a href="urn:ietf:params:xml:ns:rls-services">urn:ietf:params:xml:ns:rls-services</a>">^M&nbsp;&nbsp; &lt;service uri="<a href="sip:alice@domain;pres-list=Default">sip:alice@domain;pres-list=Default</a>">^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;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">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a>&lt;/resource-list>^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;packages>^M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;package>presence&lt;/package>^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;/packages>^M&nbsp;&nbsp; &lt;/service>^M &lt;/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: &lt;?xml version="1.0" encoding="utf-8"?>^M &lt;rls-services xmlns:rl="<a href="urn:ietf:params:xml:ns:resource-lists">urn:ietf:params:xml:ns:resource-lists</a>" xmlns="<a href="urn:ietf:params:xml:ns:rls-services">urn:ietf:params:xml:ns:rls-services</a>">^M&nbsp;&nbsp; &lt;service uri="<a href="sip:alice@domain;pres-list=Default">sip:alice@domain;pres-list=Default</a>">^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;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">http://10.26.52.122:8080/xcap-root/resource-lists/users/sip%3aalice%40domain/index/~~/resource-lists/list%5b@name=%22Default%22%5d</a>&lt;/resource-list>^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;packages>^M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;package>presence&lt;/package>^M&nbsp;&nbsp;&nbsp;&nbsp; &lt;/packages>^M&nbsp;&nbsp; &lt;/service>^M &lt;/rls-services><br> Dec 12 15:17:16 rd-srv-devlnx2 /usr/local/sbin/opensips[25465]: DBG:rls:get_resource_list: service uri <a href="sip:alice@domain">sip:alice@domain</a> not found in rl document for user <a href="sip:alice@domain">sip:alice@domain</a><br></div> _______________________________________________<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">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br></div></body></html>