<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello All,</p>
<p>An update, <br>
</p>
<p>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).</p>
<p>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.</p>
<p>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.<br>
</p>
<p><br>
</p>
<font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
regards,<br>
<br>
Adrian Fretwell<br>
<br>
Sibthorpe<br>
Nottinghamshire<br>
UK.<br>
</font>
<p><br>
</p>
<font face="Verdana, Helvetica, Sans-Serif" color="#000000"></font>On
26/06/2020 15:30, Adrian Fretwell wrote:<br>
<blockquote type="cite"
cite="mid:a2cf8a0e-d4ed-cea2-da48-6d5cdeede007@topgreen.co.uk">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hello All,</p>
<p>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.</p>
<p>I have a user <a class="moz-txt-link-abbreviated"
href="mailto:201@mydomain.uk" moz-do-not-send="true">201@mydomain.uk</a>
that wants to subscribe to <a class="moz-txt-link-abbreviated"
href="mailto:my-list@mydomain.uk" moz-do-not-send="true">my-list@mydomain.uk</a>
So in the table I put:</p>
<p>username: 201</p>
<p>domain: mydomain.uk</p>
<p>doc: (an xml document see below)</p>
<p>doc_type: 4</p>
<p>etag: a.1234</p>
<p>source: 1</p>
<p>doc_uri: <a class="moz-txt-link-freetext"
href="sip:my-list@mydomain.uk" moz-do-not-send="true">sip:my-list@mydomain.uk</a></p>
<p>port: 5060</p>
<p>Can anyone tell me what I am doing wrong please. when I call
rls_handle_subscribe() it return with $rc == 10.<br>
</p>
<p>XML doc:</p>
<p><?xml version="1.0" encoding="UTF-8"?><br>
<rls-services xmlns="urn:ietf:params:xml:ns:rls-services"<br>
xmlns:rl="urn:ietf:params:xml:ns:resource-lists"<br>
xmlns:xsi=<a class="moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema-instance"
moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema-instance"</a>><br>
<service uri=<a class="moz-txt-link-rfc2396E"
href="sip:my-list@mydomain.uk" moz-do-not-send="true">"sip:my-list@mydomain.uk"</a>><br>
<list name="my-list"><br>
<rl:entry uri=<a class="moz-txt-link-rfc2396E"
href="mailto:202@mydomain.uk" moz-do-not-send="true">"202@mydomain.uk"</a>/><br>
<rl:entry uri=<a class="moz-txt-link-rfc2396E"
href="mailto:203@mydomain.uk" moz-do-not-send="true">"203@mydomain.uk"</a>/><br>
</list><br>
<packages><br>
<package>presence</package><br>
</packages><br>
</service><br>
</rls-services> <br>
<br>
</p>
<p> <br>
</p>
<div class="moz-signature">-- <br>
</div>
<font face="Verdana, Helvetica, Sans-Serif" color="#000000">Kind
regards,<br>
<br>
Adrian Fretwell<br>
<br>
Sibthorpe<br>
Nottinghamshire<br>
UK.<br>
<br>
</font><small><small><small> </small></small></small> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>