[SR-Users] RLS is not sending Notify on resource list updated

Lewis Hutchinson lewis.hutchinson at missionlabs.co.uk
Thu Dec 1 15:02:40 CET 2022


Have you confirmed if the NOTIFY is sent? Attempted to be sent? Noticed you said "but no NOTIFY is received"


-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of sr-users-request at lists.kamailio.org
Sent: 19 November 2022 11:00
To: sr-users at lists.kamailio.org
Subject: sr-users Digest, Vol 210, Issue 19

Send sr-users mailing list submissions to
	sr-users at lists.kamailio.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=05%7C01%7Clewis.hutchinson%40missionlabs.co.uk%7C45e1a94e99574cf11b1308daca1d6e4f%7C97c26f550a7a4661bd8f7b43b50d3f2b%7C0%7C0%7C638044524996427834%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=G5FYQoDvviFE45btAKJFZ9RhM6fzqeU9XzF67PmfZog%3D&reserved=0
or, via email, send a message with subject or body 'help' to
	sr-users-request at lists.kamailio.org

You can reach the person managing the list at
	sr-users-owner at lists.kamailio.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of sr-users digest..."


Today's Topics:

   1. RLS is not sending Notify on resource list updated (Joey Golan)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Nov 2022 21:33:29 +0200
From: Joey Golan <joeygo at gmail.com>
To: "Kamailio (SER) - Users Mailing List"
	<sr-users at lists.kamailio.org>
Subject: [SR-Users] RLS is not sending Notify on resource list updated
Message-ID:
	<CAAOPBYfHikYXKSRga5Mnf+fgUisrDk5PgHoCZ7anMgqqAmnU-w at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,


I'm using Kamailio v5.6.2 with presence, presence_xml, xcap_server, and rls modules.

I pushed 2 documents to the xcap server:

1. urn:ietf:params:xml:ns:resource-lists

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">

<list name="friends">

<entry uri="sip:1001 at example.com">

<display-name>1001</display-name>

</entry>

<entry uri="sip:1002 at example.com">

<display-name>1002</display-name>

</entry>

</list>

</resource-lists>


2. urn:ietf:params:xml:ns:rls-services

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<rls-services xmlns="urn:ietf:params:xml:ns:rls-services"
xmlns:rl="urn:ietf:params:xml:ns:resource-lists" xmlns:xsi="
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=05%7C01%7Clewis.hutchinson%40missionlabs.co.uk%7C45e1a94e99574cf11b1308daca1d6e4f%7C97c26f550a7a4661bd8f7b43b50d3f2b%7C0%7C0%7C638044524996427834%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KjVzSfFpI1ettiH0EcYhbFeYCdyHPjfLaqYCaBWWemk%3D&reserved=0">

<service uri="sip:1000+presence at example.com">

<resource-list>
https://kamailio:5061/xcap-root/resource-lists/users/sip:1000@example.com/index/~~/resource-lists/list[@name=
"friends"]</resource-list>

<packages>

<package>presence</package>

</packages>

</service>

</rls-services>


I'm subscribing to presence event on rls-service


SUBSCRIBE sip:1000+presence at example.com SIP/2.0

Via: SIP/2.0/TLS 10.255.0.3:33883
;rport;branch=z9hG4bKPjbe079f60-d0e0-4f1e-9f93-b18e467be5e8;alias

Max-Forwards: 70

From: "1000" <sip:1000 at example.com>;tag=97ef0748-da39-442f-9a02-468b67134ad6

To: <sip:1000+presence at example.com>

Contact: <sip:20416583 at 10.255.0.3:5061;transport=tls>

Call-ID: 9773a68c-b001-49f0-9ffa-093beb3d8e36

CSeq: 18636 SUBSCRIBE

Event: presence

Expires: 600

Supported: 100rel, replaces, norefersub, gruu

Accept: multipart/related, application/rlmi+xml, application/pidf+xml

Allow-Events: presence

Supported: eventlist

User-Agent: sipsimple 5.2.6

Content-Length:  0



The RLS sends a NOTIFY immediately upon accepting the subscription according to RFC 4662 and also the RLS is virtually subscribing to the presence event on the 2 resources in the friends list


NOTIFY sip:20416583 at 10.255.0.3:5061;transport=tls SIP/2.0

Via: SIP/2.0/TLS joey-local-proxy.example.com:5061
;branch=z9hG4bKa93d.b63e0697000000000000000000000000.0

To: <sip:1000 at example.com>;tag=97ef0748-da39-442f-9a02-468b67134ad6

From: <sip:1000+presence at example.com
>;tag=e02a02cb113b2bdb8ebdb022d767e6d2-a1677c19

CSeq: 1 NOTIFY

Call-ID: 9773a68c-b001-49f0-9ffa-093beb3d8e36

Content-Length: 468

Max-Forwards: 70

Event: presence

Contact: <sip:kamailio at example.com:5060>

Subscription-State: active;expires=600

Require: eventlist

Content-Type:
multipart/related;type="application/rlmi+xml";start="<1668755827.sip:1000+presence at example.com.1700642067
>";boundary="1W1NaaaIIq6dOtLRXODFwqmC"


--1W1NaaaIIq6dOtLRXODFwqmC

Content-Transfer-Encoding: binary

Content-ID: <1668755827.sip:1000+presence at example.com.1700642067>

Content-Type: application/rlmi+xml;charset="UTF-8"


<?xml version="1.0"?>

<list uri="sip:1000+presence at example.com"
xmlns="urn:ietf:params:xml:ns:rlmi" version="1" fullState="true">

  <resource uri="sip:1001 at example.com"/>

  <resource uri="sip:1002 at example.com"/>

</list>


--1W1NaaaIIq6dOtLRXODFwqmC--


Now I?m changing the resource list using XCAP.

I?m sending a PUT request with a new document and I see that the change is pushed to the DB but user 1000 is not receiving a NOTIFY with the updated list.


This is the updated document:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">

<list name="friends">

<entry uri="sip:1001 at example.com">

<display-name>1001</display-name>

</entry>

<entry uri="sip:1002 at example.com">

<display-name>1002</display-name>

</entry>

<entry uri="sip:1003 at example.com">

<display-name>1003</display-name>

</entry>

</list>

</resource-lists>


I see that Kamailio is virtually subscribing on 1003 (The newly added user) but NOTIFY is not received.


Also tried to subscribe on xcap-diff event, and the subscription was accepted successfully but no NOTIFY is received.


Am I missing something?


Thanks,

Joey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.kamailio.org%2Fpipermail%2Fsr-users%2Fattachments%2F20221118%2F83ac6e7b%2Fattachment-0001.htm&data=05%7C01%7Clewis.hutchinson%40missionlabs.co.uk%7C45e1a94e99574cf11b1308daca1d6e4f%7C97c26f550a7a4661bd8f7b43b50d3f2b%7C0%7C0%7C638044524996584471%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LSAI2u21ZTGlVFj7dPH%2FB2IJrePG4LIeOj%2Bk6PWaJg%3D&reserved=0>

------------------------------

Subject: Digest Footer

_______________________________________________
sr-users mailing list
sr-users at lists.kamailio.org
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=05%7C01%7Clewis.hutchinson%40missionlabs.co.uk%7C45e1a94e99574cf11b1308daca1d6e4f%7C97c26f550a7a4661bd8f7b43b50d3f2b%7C0%7C0%7C638044524996584471%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CTHMq5hGBLwYyqwdpKiwgBAvP4stN9y0%2FpryEMLJ7xs%3D&reserved=0


------------------------------

End of sr-users Digest, Vol 210, Issue 19
*****************************************



More information about the sr-users mailing list