Hi Henning,

Right. xcap module could NOT work fine on the last version of Kamailio (5.7.0)

see the following log:

GET /xcap-root/xcap-caps/global/index HTTP/1.1
Accept-Encoding: identity
Host: 192.168.3.88:5060
Connection: close
Accept: application/xcap-caps+xml
User-Agent: Blink 3.2.0 (Windows)

HTTP/1.1 401 Unauthorized
Sia: SIP/2.0/TCP 192.168.3.2:54000
WWW-Authenticate: Digest realm="xcap", nonce="Y14sJGNeKvjLmZcir3+ioxNW9lxIFIKu"
Server: kamailio (5.7.0-dev1 (x86_64/linux))
Content-Length: 0


 xcap module on 5.7.0 will NOT send the "GET" message with digest, when get 401 response. But on 3.1 works fine.

I already check the xcap module manual, https://kamailio.org/docs/modules/devel/modules/xcap_server.html  I don't find more configurations.

Could you please give more hints?

Thanks!

Sparkle Zou




At 2022-11-02 03:59:20, "Henning Westerholt" <hw@gilawa.com> wrote:

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 ¨C https://skalatan.de/blog/

Kamailio services ¨C https://gilawa.com

 

From: sr-users <sr-users-bounces@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" <sparklezou@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

 

 

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