Hello,

Generally you should use a recent and maintained operating system and also a 
maintained version of Kamailio  (5.5.x or 5.6.x).

Are you saying that the xcap module work in Kamailio 3.1.x but not anymore in a 
newer version?

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-boun...@lists.kamailio.org> On Behalf Of SparkleZou
Sent: Tuesday, November 1, 2022 1:32 PM
To: sr-users@lists.kamailio.org
Subject: Re: [SR-Users] About the Presence service 401 issue



Hi Sir/Madam,

I set up Ubuntu 10.04 + opensue3.1, then the xcap module work fine.

Then seems the last version xcap module could NOT send the "GET" message with 
digest, when get 401 response.

Is there any parameter which should be set, in order to fix it?

Thanks!


GET /xcap-root/xcap-caps/global/index HTTP/1.1

Connection: close

Host: 192.168.3.92:5060

User-Agent: Jitsi/2.10.5550



HTTP/1.1 401 Unauthorized

Via: SIP/2.0/TCP 192.168.3.2:64456

WWW-Authenticate: Digest realm="xcap", nonce="Y2EQdGNhD0i+lrl8o8tcSAWCWQzjYC/T"

Server: kamailio (3.1.6 (x86_64/linux))

Content-Length: 0



GET /xcap-root/xcap-caps/global/index HTTP/1.1

Connection: close

Host: 192.168.3.92:5060

User-Agent: Jitsi/2.10.5550

Authorization: Digest username="alice", realm="xcap", 
nonce="Y2EQdGNhD0i+lrl8o8tcSAWCWQzjYC/T", 
uri="/xcap-root/xcap-caps/global/index", 
response="67298bcc13442ced04641cf2bb9855f2", algorithm="MD5"



HTTP/1.1 200 ok

Via: SIP/2.0/TCP 192.168.3.2:64456

Content-Type: application/xcap-caps+xml

Server: kamailio (3.1.6 (x86_64/linux))

Content-Length: 694



<?xml version='1.0' encoding='UTF-8'?>

<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>

</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>

</namespaces>

</xcap-caps>


BR,
Sparkle Zou



At 2022-10-30 16:20:05, "SparkleZou" 
<sparkle...@126.com<mailto:sparkle...@126.com>> wrote:
Hi Sir/Madam,
I'm trying to set up the presence service according to the manual 
http://kb.asipto.com/kamailio:presence:k31-made-simple

Also refer to the doc 
https://kamailio.org/docs/modules/devel/modules/xcap_server.html

Seems the Kamailio cfg fine.  but when to get the xcap data, get the 401 
response.

Please see the attached log. Is there any more should be configured?

Thanks!

BR,
Sparkle Zou
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to