[OpenSIPS-Users] Resource List Server- Help with xcap table data

Adrian Fretwell adrian.fretwell at topgreen.co.uk
Tue Jun 30 05:56:54 EST 2020


Hello All,

An update,

I have got this working.  The clue was in the name space of the XML.  
The doc_type that I had thought was correct 4 (RESOURCE_LISTS) needed to 
be set to 8 (RLS_SERVICES).

A BLF List subscription from a Yealink phone always seems to generate an 
XCAP table database query looking for doc_type 8.  I clearly do not 
fully understand this process yet despite reading through two relevant 
RFCs 4662 and 4826.

It is still unclear to me what needs to be put in the doc_url or port 
columns of the xcap table, it is not mentioned in the documentation and 
there is no example in the tutorial on the OpenSIPS site.  If anyone has 
more information on this, please let me know.


Kind regards,

Adrian Fretwell

Sibthorpe
Nottinghamshire
UK.


On 26/06/2020 15:30, Adrian Fretwell wrote:
>
> Hello All,
>
> I think I am just missing a small amount of information here. I am 
> trying to get the resource list sever to work but I think my problem 
> is not knowing what data to put into the xcap table.
>
> I have a user 201 at mydomain.uk that wants to subscribe to 
> my-list at mydomain.uk So in the table I put:
>
> username: 201
>
> domain: mydomain.uk
>
> doc: (an xml document see below)
>
> doc_type: 4
>
> etag: a.1234
>
> source: 1
>
> doc_uri: sip:my-list at mydomain.uk
>
> port: 5060
>
> Can anyone tell me what I am doing wrong please.  when I call 
> rls_handle_subscribe() it return with $rc == 10.
>
> XML doc:
>
> <?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="sip:my-list at mydomain.uk">
>        <list name="my-list">
>           <rl:entry uri="202 at mydomain.uk"/>
>           <rl:entry uri="203 at mydomain.uk"/>
>            </list>
>            <packages>
>               <package>presence</package>
>            </packages>
>         </service>
>    </rls-services>
>
>
> -- 
> Kind regards,
>
> Adrian Fretwell
>
> Sibthorpe
> Nottinghamshire
> UK.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200630/b76bfdff/attachment.html>


More information about the Users mailing list