[OpenSIPS-Users] RLS(Resource List Server)

Anca Vamanu anca at voice-system.ro
Thu Oct 23 13:08:30 CEST 2008


Hi Jeon,

The column was changed from type text to type blob because there was a 
problem with postgres db. However the text is not transformed into 
binary but written as text and extracted as text.
And yes, you should put the whole xml in the doc column.

regards,
Anca

Yoo Chan Jeon wrote:
> Hi, Anca
>  
> Thanks for your information.
> I  was busy doing other issues in the presence server.
> Now I am back to this issue.
> I checked the xcap data structure, and source codes.
> The xcap doc column's type is a BLOB in the database. But I looked at 
> the codes. It seems to save the doc  as a string not a BLOB.
> I am still confused.
> How do I save the xml sample you wrote to the doc column? I mean the list.
> Should I put the whole xml to the doc column in the xcap table?
>  
> Thanks.
>  
> Jeon
>
>  
> On Thu, Oct 2, 2008 at 9:38 AM, Anca Vamanu <anca at voice-system.ro 
> <mailto:anca at voice-system.ro>> wrote:
>
>     Hi Jeon,
>
>     If you want to simulate an xcap server for rls you can do that by
>     doing the following:
>     1. set integrated_xcap_server parameter in rls module to 1.
>     2. write the list in xcap table , putting value '4' in 'doc_type'
>     column.
>     You should complete only columns: username, domain, doc and
>     doc_type, because these are the only ones used by the rls server.
>     The list must have the format described in RFC 4826
>     <http://www.ietf.org/rfc/rfc4826.txt>. For the example that you
>     gave it would look something like this:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
>     <list name="SIMPLE Buddy List">
>     <display-name>SIMPLE Buddy List</display-name>
>     <entry uri="sip: joe at domain <mailto:joe at domain <mailto:joe at domain>>">
>     <display-name>joe</display-name>
>     </entry>
>     <entry uri="sip: bob at domain <mailto:joe at domain <mailto:joe at domain>>">
>     <display-name>bob</display-name>
>     </entry>
>     <entry uri="sip:tom at domain <mailto:tom at domain <mailto:tom at domain>>">
>     <display-name>tom</display-name>
>     </entry>
>     </list></resource-lists>
>
>     regards,
>     Anca Vamanu
>
>     Yoo Chan Jeon wrote:
>
>
>         Hi,
>         I just want to know how RLS handles SUBSCRIBE messages without
>         using XCAP.
>         I assume that the server already has the list information.
>         I want send the SUBSRIBE message with resource list format:
>
>         SUBSCRIBE sip:list at domain
>         .
>         .
>         supported:eventlist
>         Accept:application/rlmi+xml
>         Accept:multipart/related
>           I added rls, presence, presence_xml, and pua modlues in the
>         configuration file.
>         I do not have any problems to run the server.
>         Which database should I add list at doamin <mailto:list at doamin
>         <mailto:list at doamin>> to?
>
>         How do I add the resource list?
>         What kind of format do I need to add a list if I want to add
>         joe at domain <mailto:joe at domain <mailto:joe at domain>>, bob at domain
>         <mailto:bob at domain <mailto:bob at domain>>, tom at domain
>         <mailto:tom at domain <mailto:tom at domain>> ?
>
>         Do you have some kind of examples?
>
>         Thanks you.
>         Jeon
>
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>          
>
>
>




More information about the Users mailing list