[OpenSIPS-Users] Resource List Server- Help with xcap table data
adrian.fretwell at topgreen.co.uk
Tue Jun 30 05:56:54 EST 2020
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.
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"
> <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"/>
> Kind regards,
> Adrian Fretwell
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users