Hello Sirs,
I'm trying from some days to make RLS work but without success. I checked
every character from kamailio.cfg, xml files from xcap but I can't find the
problem and I'm out of ideas.
My problem is the the subscribe is not done => 0 notifications with status.
I think the key error is that:
DEBUG: rls [subscribe.c:125]: rls_get_by_service_uri(): match not found,
service-uri = [sip:bob@93.187.138.214]
2(29025) DEBUG: rls [subscribe.c:125]: rls_get_by_service_uri(): match not
found, service-uri = [sip:bob@93.187.138.214]
2(29025) DEBUG: rls [subscribe.c:125]: rls_get_by_service_uri(): match not
found, service-uri = [sip:bob@93.187.138.214]
2(29025) DEBUG: rls [subscribe.c:279]: rls_get_service_list(): service uri
sip:alice@93.187.138.214 not found in rl document for user
sip:bob@93.187.138.214
Request:
SUBSCRIBE sip:bob-list@93.187.138.214 SIP/2.0
Via: SIP/2.0/WS kvvj9i9uhvbp.invalid;branch=z9hG4bK4622972 Max-Forwards: 69
To: <sip:bob-list@93.187.138.214> From: "Bob Test"
<sip:bob@93.187.138.214>;tag=e9144sdk2v
Call-ID: 52k3b9gheoj6gk2vmjlrr0 CSeq: 81 SUBSCRIBE Expires: 300 Event:
presence Contact:
<sip:v8jmlmeu@kvvj9i9uhvbp.invalid;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:152abb8b-085d-4ca5-b658-4ecb38d1b79f>";expires=60000
Supported: eventlist Accept: multipart/related, application/pidf+xml,
application/rlmi+xml, application/rpid+xml Allow-Events: refer, presence,
presence.winfo, xcap-diff, conference Require: recipient-list-subscribe
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE,
REFER User-Agent: JsSIP 0.3.7 Content-Length: 0
Receive:
NOTIFY sip:v8jmlmeu@188.215.94.132:25702;transport=ws SIP/2.0 Via:
SIP/2.0/WS 93.187.138.214:5040;branch=z9hG4bKf43b.cc179644000000000000000000000000.0
To: <sip:bob@93.187.138.214>;tag=e9144sdk2v From: <
sip:bob-list@93.187.138.214>;tag=67d32ce551425daaac3772fa02abe99f-daa0
CSeq: 1 NOTIFY Call-ID: 52k3b9gheoj6gk2vmjlrr0 Content-Length: 394
User-Agent: kamailio (4.2.0-dev3 (x86_64/linux)) Max-Forwards: 70 Event:
presence Contact: <sip:rls@93.187.138.214> Subscription-State:
active;expires=300 Require: eventlist Content-Type:
multipart/related;type="application/rlmi+xml";start="<1396291389.sip:bob-list@93.187.138.214.834374984>";boundary="TnOoxHgwMlltoGjpMlgd1kNc"
--TnOoxHgwMlltoGjpMlgd1kNc Content-Transfer-Encoding: binary Content-ID:
<1396291389.sip:bob-list@93.187.138.214.834374984> Content-Type:
application/rlmi+xml;charset="UTF-8" <?xml version="1.0"?>
<list uri="
sip:bob-list@93.187.138.214" xmlns="urn:ietf:params:xml:ns:rlmi"
version="1" fullState="true"> <resource
uri="sip:alice@93.187.138.214"/>
</list> --TnOoxHgwMlltoGjpMlgd1kNc--
I have 2 users: bob & alice.
Alice xcap files:
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
<list name="Default">
<display-name>All Contacts</display-name>
<entry xmlns="urn:ietf:params:xml:ns:resource-lists" uri="
sip:bob@93.187.138.214">
<display-name>bob</display-name>
</entry>
</list>
</resource-lists>
<rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
xmlns="urn:ietf:params:xml:ns:rls-services">
<service uri="sip:alice-list@93.187.138.214">
<resource-list>
http://93.187.138.214:5060/xcap-root/resource-lists/users/sip:alice@93.187.…
</resource-list>
<packages>
<package>presence</package>
</packages>
</service>
</rls-services>
Bob xcap files:
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
<list name="Default">
<display-name>All Contacts</display-name>
<entry xmlns="urn:ietf:params:xml:ns:resource-lists" uri="
sip:alice@93.187.138.214">
<display-name>alice</display-name>
</entry>
</list>
</resource-lists>
<rls-services xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
xmlns="urn:ietf:params:xml:ns:rls-services">
<service uri="sip:bob@93.187.138.214">
<resource-list>
http://93.187.138.214:5060/xcap-root/resource-lists/users/sip:bob@93.187.13…
</resource-list>
<packages>
<package>presence</package>
</packages>
</service>
</rls-services>
And, global file:
<xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'>
<auids>
<auid>rls-services</auid>
<auid>pidf-manipulation</auid>
<auid>xcap-caps</auid>
<auid>resource-lists</auid>
<auid>pres-rules</auid>
<auid>org.openmobilealliance.pres-rules</auid>
<auid>org.openmobilealliance.user-profile</auid>
<auid>org.openmobilealliance.pres-content</auid>
</auids>
<extensions>
</extensions>
<namespaces>
<namespace>urn:ietf:params:xml:ns:rls-services</namespace>
<namespace>urn:ietf:params:xml:ns:pidf</namespace>
<namespace>urn:ietf:params:xml:ns:xcap-caps</namespace>
<namespace>urn:ietf:params:xml:ns:resource-lists</namespace>
<namespace>urn:ietf:params:xml:ns:pres-rules</namespace>
<namespace>urn:oma:xml:xdm:user-profile</namespace>
<namespace>urn:oma:xml:prs:pres-content</namespace>
</namespaces>
</xcap-caps>
KAMAILIO log is here:
http://pastebin.com/4XGSCPkc
Kamailio route presence from config is here:
http://pastebin.com/LYSr5yPz
What I'm doing wrong? Are xml configured properly?
Thank you.
Best regards,
Mihai M