Hi,
I'm trying to create a RLS "rls-services" document with a contacts-list inside it. Kamailio states that "No xcap document found for uri:x".
When creating a subscribe I must set the uri to the service uri. What I want to know is the sql query Kamailio does in order to get the contacts list for that uri.
For example: XCAP document:
"<?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">" + "<service uri="sip:restricted_areas_presentities@open-ims.test">" + "<list name="friends">" + "<rl:entry uri="sip:testuser01@open-ims.test"/>" + "<rl:entry uri="sip:testuser02@open-ims.test"/>" + "</list>" + "<packages>" + "<package>presence</package>" + "</packages>" + "</service>" + "</rls-services>";
Is stored in /xcap-root/rls-services/users/sip:restricted_areas@open-ims.test/index
The subscribe is from sip:restricted_areas@open-ims.test to sip:restricted_areas_presentities@open-ims.test
What am I doing wrong?
Thanks, Andrés.
Hello,
have you uploaded the rls-services document via the xcap_server module? The document is retrieved from the xcap table and query is done on username and domain columns, not parsing the xml doc to match node attributes.
Here is a tutorial with some hints how to upload documents to xcap_server module with command line tools: http://kb.asipto.com/kamailio:presence:k31-made-simple#additional_tools
Uploading in this way you are sure that the presence modules will be able to retrieve the xcap documents properly.
Cheers, Daniel
On 1/24/11 3:19 AM, "Andrés S. García Ruiz" wrote:
Hi,
I'm trying to create a RLS "rls-services" document with a contacts-list inside it. Kamailio states that "No xcap document found for uri:x".
When creating a subscribe I must set the uri to the service uri. What I want to know is the sql query Kamailio does in order to get the contacts list for that uri.
For example: XCAP document:
"<?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">" + "<service uri="sip:restricted_areas_presentities@open-ims.test">" + "<list name="friends">" + "<rl:entry uri="sip:testuser01@open-ims.test"/>" + "<rl:entry uri="sip:testuser02@open-ims.test"/>" + "</list>" + "<packages>" + "<package>presence</package>" + "</packages>" + "</service>" + "</rls-services>";
Is stored in /xcap-root/rls-services/users/sip:restricted_areas@open-ims.test/index
The subscribe is from sip:restricted_areas@open-ims.test to sip:restricted_areas_presentities@open-ims.test
What am I doing wrong?
Thanks, Andrés.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
Rls-services document is working now!
Thanks a lot. The problem was the URI where the document was stored. It must contain the same userID and domain as in the To: header in the Sip subscribe message.
Regards, Andrés.
El 25/01/11 15:45, Daniel-Constantin Mierla escribió:
Hello,
have you uploaded the rls-services document via the xcap_server module? The document is retrieved from the xcap table and query is done on username and domain columns, not parsing the xml doc to match node attributes.
Here is a tutorial with some hints how to upload documents to xcap_server module with command line tools: http://kb.asipto.com/kamailio:presence:k31-made-simple#additional_tools
Uploading in this way you are sure that the presence modules will be able to retrieve the xcap documents properly.
Cheers, Daniel
On 1/24/11 3:19 AM, "Andrés S. García Ruiz" wrote:
Hi,
I'm trying to create a RLS "rls-services" document with a contacts-list inside it. Kamailio states that "No xcap document found for uri:x".
When creating a subscribe I must set the uri to the service uri. What I want to know is the sql query Kamailio does in order to get the contacts list for that uri.
For example: XCAP document:
"<?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">" + "<service uri="sip:restricted_areas_presentities@open-ims.test">" + "<list name="friends">" + "<rl:entry uri="sip:testuser01@open-ims.test"/>" + "<rl:entry uri="sip:testuser02@open-ims.test"/>" + "</list>" + "<packages>" + "<package>presence</package>" + "</packages>" + "</service>" + "</rls-services>";
Is stored in /xcap-root/rls-services/users/sip:restricted_areas@open-ims.test/index
The subscribe is from sip:restricted_areas@open-ims.test to sip:restricted_areas_presentities@open-ims.test
What am I doing wrong?
Thanks, Andrés.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Am 26.01.2011 11:18, schrieb "Andrés S. García Ruiz":
Hi,
Rls-services document is working now!
Thanks a lot. The problem was the URI where the document was stored. It must contain the same userID and domain as in the To: header in the Sip subscribe message.
That's weird. IMO To should never be used for any comparison. IMO only RURI of SUBSCRIBE is relevant.
regards Klaus
Not sure what you problem is, but that works for me:
<?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:rls-0001@example.net"> <list name="klaus3000buddies"> <rl:entry uri="sip:buddy1@example.net"/> </list> <packages> <package>presence</package> </packages> </service> </rls-services>
is uploaded with:
Am 24.01.2011 12:19, schrieb "Andrés S. García Ruiz":
Hi,
I'm trying to create a RLS "rls-services" document with a contacts-list inside it. Kamailio states that "No xcap document found for uri:x".
When creating a subscribe I must set the uri to the service uri. What I want to know is the sql query Kamailio does in order to get the contacts list for that uri.
activate mysql debugging: either
a) turn on mysql logging in my.cnf:
general_log_file = /var/log/mysql/mysql.log
or b) configure the modules to connect to mysql using a TCP socket instead of unix socket:
#!define DBURL "mysql://openser:openserrw@127.0.0.1/openser"
Then you can easy trace and correlate SIP requests with database lookups:
ngrep -d any -t port 5060 or port 3306
regards klaus
For example: XCAP document:
"<?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">" + "<service uri="sip:restricted_areas_presentities@open-ims.test">" + "<list name="friends">" + "<rl:entry uri="sip:testuser01@open-ims.test"/>" + "<rl:entry uri="sip:testuser02@open-ims.test"/>" + "</list>" + "<packages>" + "<package>presence</package>" + "</packages>" + "</service>" + "</rls-services>";
Is stored in /xcap-root/rls-services/users/sip:restricted_areas@open-ims.test/index
The subscribe is from sip:restricted_areas@open-ims.test to sip:restricted_areas_presentities@open-ims.test
IIRC correctly From identity and RURI must be identical
regards Klaus
Hi,
Yes, the mysql debug was very useful. It helps me to find that the username and domain in the xcap url where the document is stored, must be the same as the to header in the subscribe, and also in the service uri.
Thanks a lot!
Regards, Andrés.
El 25/01/11 20:57, Klaus Darilion escribió:
Not sure what you problem is, but that works for me:
<?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:rls-0001@example.net"> <list name="klaus3000buddies"> <rl:entry uri="sip:buddy1@example.net"/> </list> <packages> <package>presence</package> </packages> </service> </rls-services>
is uploaded with:
Am 24.01.2011 12:19, schrieb "Andrés S. García Ruiz":
Hi,
I'm trying to create a RLS "rls-services" document with a contacts-list inside it. Kamailio states that "No xcap document found for uri:x".
When creating a subscribe I must set the uri to the service uri. What I want to know is the sql query Kamailio does in order to get the contacts list for that uri.
activate mysql debugging: either
a) turn on mysql logging in my.cnf:
general_log_file = /var/log/mysql/mysql.log
or b) configure the modules to connect to mysql using a TCP socket instead of unix socket:
#!define DBURL "mysql://openser:openserrw@127.0.0.1/openser"
Then you can easy trace and correlate SIP requests with database lookups:
ngrep -d any -t port 5060 or port 3306
regards klaus
For example: XCAP document:
"<?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">" + "<service uri="sip:restricted_areas_presentities@open-ims.test">" + "<list name="friends">" + "<rl:entry uri="sip:testuser01@open-ims.test"/>" + "<rl:entry uri="sip:testuser02@open-ims.test"/>" + "</list>" + "<packages>" + "<package>presence</package>" + "</packages>" + "</service>" + "</rls-services>";
Is stored in /xcap-root/rls-services/users/sip:restricted_areas@open-ims.test/index
The subscribe is from sip:restricted_areas@open-ims.test to sip:restricted_areas_presentities@open-ims.test
IIRC correctly From identity and RURI must be identical
regards Klaus