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 [email protected] that wants to subscribe to
[email protected] 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:[email protected]
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:[email protected]">
<list name="my-list">
<rl:entry uri="[email protected]"/>
<rl:entry uri="[email protected]"/>
</list>
<packages>
<package>presence</package>
</packages>
</service>
</rls-services>
--
Kind regards,
Adrian Fretwell
Sibthorpe
Nottinghamshire
UK.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users