[SR-Users] About the Presence service 401 issue

SparkleZou sparklezou at 126.com
Wed Nov 9 09:56:30 CET 2022


Hi Henning,


It's NOT working since 3.2 version.



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

Connection: close

Host: 10.120.100.210:5060

User-Agent: Jitsi/2.10.5550




HTTP/1.1 401 Unauthorized

Via: SIP/2.0/TCP 10.120.100.241:54882

WWW-Authenticate: Digest realm="xcap", nonce="Y2tl22NrZK+QYSR3Wo7fEAHSb0Y/V7zN"

Server: kamailio (3.2.4 (x86_64/linux))

Content-Length: 0




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

Connection: close

Host: 10.120.100.210:5060

User-Agent: Jitsi/2.10.5550

Authorization: Digest username="", realm="xcap", nonce="Y2tl22NrZK+QYSR3Wo7fEAHSb0Y/V7zN", uri="/xcap-root/xcap-caps/global/index", response="f75f79c2a59fc507ffc24058495e4819", algorithm="MD5"




HTTP/1.1 401 Unauthorized

Via: SIP/2.0/TCP 10.120.100.241:54882

WWW-Authenticate: Digest realm="xcap", nonce="Y2tl22NrZK+QYSR3Wo7fEAHSb0Y/V7zN"

Server: kamailio (3.2.4 (x86_64/linux))

Content-Length: 0




But I compared the presence and xcap folders, and don't found any change.  Then why cause such issue?




Thanks!




BR,

Sparkle Zou 
















At 2022-11-02 16:44:34, "Henning Westerholt" <hw at gilawa.com> wrote:

Hello,

 

Thanks. From 3.1.x to 5.6.x is a long time with a lot of changes. Hard to say why this happened.

Maybe somebody else can who knows more details can comment as well.

 

You could run some tests with different versions to find out when it was broken on your side.

This can also be done by e.g. by compiling from the git and checkout the appropriate tagged versions.

Using “git bisect” might be also helpful to find it faster. If you found out some more, please open an issue on our tracker.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: SparkleZou <sparklezou at 126.com>
Sent: Wednesday, November 2, 2022 3:30 AM
To: Henning Westerholt <hw at gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re:RE: [SR-Users] About the Presence service 401 issue

 

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 at 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 – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of SparkleZou
Sent: Tuesday, November 1, 2022 1:32 PM
To:sr-users at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20221109/4b5433cf/attachment.htm>


More information about the sr-users mailing list