RLS change from the latest trunk svn

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

RLS change from the latest trunk svn

Yoo Chan Jeon
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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Help me on openxcap

mahesh.peddi
Hi All,
 
I am working on openxcap 1.0.6 version.
It is running fine. But when i am trying to upload an xml file with UCTIMS client, i specified the URI of xcap as  http://xcap.info-spectrum.com/xcap-root.
Its giving invalid URI.
My question is : "How to define a valid URI? Please Help me on this ".
Regards,
Mahesh

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

Re: Help me on openxcap

Adrian Georgescu
Mahesh,

You must read RFC 4825 for this

http://www.tools.ietf.org/html/rfc4825

Adrian

On Nov 13, 2008, at 8:24 AM, <[hidden email]> <[hidden email]
 > wrote:

> Hi All,
>
> I am working on openxcap 1.0.6 version.
> It is running fine. But when i am trying to upload an xml file with  
> UCTIMS client, i specified the URI of xcap as  http://xcap.info-spectrum.com/xcap-root 
> .
> Its giving invalid URI.
> My question is : "How to define a valid URI? Please Help me on this ".
> Regards,
> Mahesh
> _______________________________________________
> 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 change from the latest trunk svn

Anca Vamanu
In reply to this post by Yoo Chan Jeon
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=<a class="moz-txt-link-rfc2396E" href="sip:anca-list@opensips.org">"sip:anca-list@...">
      <list name="friends">
            <entry uri=<a class="moz-txt-link-rfc2396E" href="sip:test1@opensips.org">"sip:test1@..."/>
            <entry uri=<a class="moz-txt-link-rfc2396E" href="sip:test2@opensips.org">"sip:test2@..."/>
      </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 [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

anca.vcf (219 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RLS change from the latest trunk svn

mahesh.peddi
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="<A href='http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance"><service uri="sip:[hidden email]"> <list name="friends"><entry uri="sip:[hidden email]"/><entry uri="sip:[hidden email]"/></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:[hidden email] and uri we are searching for is : sip:[hidden email]
 
Nov 14 14:48:48 info opensips[11679]: ERROR:rls:get_resource_list: entry uri sip:[hidden email] not found in rl document for user sip:[hidden email]
 
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 [hidden email] in the subscribe message from UE itself?
Please let me know.
 
Regards,
Mahesh Peddi

----- Original Message -----
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=<A class=moz-txt-link-rfc2396E href="sip:anca-list@opensips.org">"sip:anca-list@...">
      <list name="friends">
            <entry uri=<A class=moz-txt-link-rfc2396E href="sip:test1@opensips.org">"sip:test1@..."/>
            <entry uri=<A class=moz-txt-link-rfc2396E href="sip:test2@opensips.org">"sip:test2@..."/>
      </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 [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