RLS: get_resource_list: : service uri not found in rl document for user

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

RLS: get_resource_list: : service uri not found in rl document for user

Franz Edler-3
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:[hidden email];pres-list=Default from 10.0.0.5:6060
From: sip:[hidden email]  To: sip:[hidden email];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:[hidden email];pres-list=Default>

   May 31 20:34:50 [2906] DBG:rls:get_resource_list: Searched RL document
for user sip:[hidden email]

   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:[hidden email];pres-list=Default">

 
<resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email];pres-list=Default">

 
<resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email] not found in rl document for user sip:[hidden email]

----------------------- snip -----------------------------------------------

The last line obviously shows the problem:
  get_resource_list: service uri sip:[hidden email] not found in rl
document for user sip:[hidden email]

What "service uri" is missing in the resource-list document?
The SUBSCRIBE request is addressed to sip:[hidden email] (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:[hidden email]"
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RLS: get_resource_list: : service uri not found in rl document for user

Anca Vamanu-2
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:[hidden email];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:[hidden email];pres-list=Default from 10.0.0.5:6060
> From: sip:[hidden email]  To: sip:[hidden email];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:[hidden email];pres-list=Default>
>
>    May 31 20:34:50 [2906] DBG:rls:get_resource_list: Searched RL document
> for user sip:[hidden email]
>
>    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:[hidden email];pres-list=Default">
>
>  
> <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
> ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email];pres-list=Default">
>
>  
> <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
> ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email] not found in rl document for user sip:[hidden email]
>
> ----------------------- snip -----------------------------------------------
>
> The last line obviously shows the problem:
>   get_resource_list: service uri sip:[hidden email] not found in rl
> document for user sip:[hidden email]
>
> What "service uri" is missing in the resource-list document?
> The SUBSCRIBE request is addressed to sip:[hidden email] (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:[hidden email]"
> 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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RLS: get_resource_list: : service uri not found in rl document for user

Anca Vamanu-2
Hi Franz,

I have made the fix in trunk, 1.5 branch and 1.4 branch. Please update
from svn and try again.

Thanks,
Anca

Anca Vamanu wrote:

> 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:[hidden email];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:[hidden email];pres-list=Default from 10.0.0.5:6060
>> From: sip:[hidden email]  To: sip:[hidden email];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:[hidden email];pres-list=Default>
>>
>>    May 31 20:34:50 [2906] DBG:rls:get_resource_list: Searched RL document
>> for user sip:[hidden email]
>>
>>    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:[hidden email];pres-list=Default">
>>
>>  
>> <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
>> ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email];pres-list=Default">
>>
>>  
>> <resource-list>http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal
>> ice%40net1.test/index/~~/resource-lists/list%5b@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:[hidden email] not found in rl document for user sip:[hidden email]
>>
>> ----------------------- snip -----------------------------------------------
>>
>> The last line obviously shows the problem:
>>   get_resource_list: service uri sip:[hidden email] not found in rl
>> document for user sip:[hidden email]
>>
>> What "service uri" is missing in the resource-list document?
>> The SUBSCRIBE request is addressed to sip:[hidden email] (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:[hidden email]"
>> 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
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>  
>>    
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RLS: get_resource_list: : service uri not found in rl document for user

Franz Edler-3
Thanks Anca,

> I have made the fix in trunk, 1.5 branch and 1.4 branch. Please update
> from svn and try again.

I can confirm that the issue is fixed now.
The subscription to the resource-list is now answered with 200 OK.

But there is another issue "resource list ... expanded to 0 contacts" which
I will cover in another mail.

Best regards
Franz


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users