Hello,
there is no "xcap" module, it looks like only xcap_server module is in use, which has nothing to do with initiating GET requests, but respond to them. There is xcap_client module, which should do HTTP GET, but it does not seem to be used.
Looking at http traffic in the email, the xcap clients are jitsi and blink, they do GET and receive 401 from kamailio, and they should follow up with a new GET having authorization header, which is actually done by jitsi.
At this moment, it does not seem anything related to kamailio, or at least not a situation when kamailio has to do any GET.
Try with jitsi and kamailio newer version, see if works, if not look at the logs of jitsi to see if it complains about anything.
Cheers, Daniel
On 02.11.22 09:44, Henning Westerholt 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/ https://skalatan.de/blog/
Kamailio services – https://gilawa.com https://gilawa.com/
*From:*SparkleZou sparklezou@126.com *Sent:* Wednesday, November 2, 2022 3:30 AM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@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%C2%A0 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 – https://skalatan.de/blog/ <https://skalatan.de/blog/> Kamailio services – https://gilawa.com <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 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