[OpenSIPS-Users] OpenXCAP and Presence with SNOM version 8.2.29
Adrian Georgescu
ag at ag-projects.com
Wed May 26 09:28:48 CEST 2010
XCAP root not found for URI:
https://xcap.ae.comhttps://xcap.ae.com:443/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
Don't you see that the configuration is plain wrong:
https://xcap.ae.comhttps://xcap.ae.com:443
What do you expect the server to do more then telling you the XCAP
root is not found?
Adrian
On May 26, 2010, at 5:36 AM, osiris123d wrote:
>
> I just did a wireshark capture of a snom 8.2.29 phone sending a XCAP
> HTTPS
> request to OpenXCAP and I think OpenXCAP is somehow mutating the
> resource
> path.
>
>
> The phone sends the correct path and all
> 253 22:09:18.629127 192.168.0.7 173.203.87.134 HTTP GET
> https://xcap.ae.com:443/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
> HTTP/1.1
>
> But OpenXCAP replies with an error
> 254 22:09:18.685811 173.203.87.134 192.168.0.7 HTTP HTTP/1.1 404 Not
> Found
> (text/plain)
>
>
> Here is what the OpenXCAP access.log says (You will notice that the
> first
> two logs are the snom phone and after that is a successful access
> log of a
> Counterpath Bria client)
>
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
> HTTP/
> 1.1' 404 0 179 'Mozilla/4.0 (compatible; snom360-SIP 8.2.29 1.1.3-
> m)' -
> TRACEBACK (most recent call last):
> File
> "/usr/lib/python2.5/site-packages/twisted/web2/channel/http.py",
> line 412,
> in processRequest
> self.request.process()
> File "/usr/lib/python2.5/site-packages/twisted/web2/
> server.py",
> line 299, in process
> d.callback(None)
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 280, in callback
> self._startRunCallbacks(result)
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 354, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 371, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib/python2.5/site-packages/twisted/web2/
> server.py",
> line 296, in <lambda>
> d.addCallback(lambda res, req: res.renderHTTP(req), self)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 335, in renderHTTP
> d = self.authenticate(request)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 225, in authenticate
> xcap_uri = parseNodeURI(uri,
> AuthenticationConfig.default_realm)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 94, in parseNodeURI
> raise ResourceNotFound("XCAP root not found for URI: %s" %
> node_uri)
> xcap.errors.ResourceNotFound: XCAP root not found for URI:
> https://xcap.ae.comhttps://xcap.aethercommunica
> tions.com:443/xcap-root at irock.com/resource-lists/users/sip:9XX2XX2XX0 at irock.com/index
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
> HTTP/
> 1.1' 404 0 179 'Mozilla/4.0 (compatible; snom360-SIP 8.2.29 1.1.3-
> m)' -
> TRACEBACK (most recent call last):
> File
> "/usr/lib/python2.5/site-packages/twisted/web2/channel/http.py",
> line 412,
> in processRequest
> self.request.process()
> File "/usr/lib/python2.5/site-packages/twisted/web2/
> server.py",
> line 299, in process
> d.callback(None)
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 280, in callback
> self._startRunCallbacks(result)
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 354, in _startRunCallbacks
> self._runCallbacks()
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-packages/twisted/internet/
> defer.py",
> line 371, in _runCallbacks
> self.result = callback(self.result, *args, **kw)
> File "/usr/lib/python2.5/site-packages/twisted/web2/
> server.py",
> line 296, in <lambda>
> d.addCallback(lambda res, req: res.renderHTTP(req), self)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 335, in renderHTTP
> d = self.authenticate(request)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 225, in authenticate
> xcap_uri = parseNodeURI(uri,
> AuthenticationConfig.default_realm)
> File "/usr/lib/pymodules/python2.5/xcap/authentication.py",
> line
> 94, in parseNodeURI
> raise ResourceNotFound("XCAP root not found for URI: %s" %
> node_uri)
> xcap.errors.ResourceNotFound: XCAP root not found for URI:
> https://xcap.ae.comhttps://xcap.aethercommunica
> tions.com:443/xcap-root at irock.com/resource-lists/users/sip:9XX2XX2XX0 at irock.com/index
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX9@irock.com/contacts-re
> source-list.xml HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> Host: xcap.ae.com
> Accept: */*
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX9@irock.com/contacts-re
> source-list.xml HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> Host: xcap.ae.com
> Accept: */*
> Authorization: Basic
> c2lwOjkwMTI3MzIwMDlAaXJvY2suY29tOmIxNjdpbnV4
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/org.openmobilealliance.pres-rules/users/sip:9XX2XX2XX9@ir
> ock.com/pres-rules HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> If-None-Match: "6d574e8b6b37e2daa799343d467a6bb4"
> Host: xcap.ae.com
> Accept: */*
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/org.openmobilealliance.pres-rules/users/sip:9XX2XX2XX9@ir
> ock.com/pres-rules HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> If-None-Match: "6d574e8b6b37e2daa799343d467a6bb4"
> Host: xcap.ae.com
> Accept: */*
> Authorization: Basic
> c2lwOjkwMTI3MzIwMDlAaXJvY2suY29tOmIxNjdpbnV4
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX9@irock.com/resource-li
> st.xml HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> If-None-Match: "02df545fb141ee66255d9afeef3e69e3"
> Host: xcap.ae.com
> Accept: */*
> 7X.XX.XXX.XXX 'GET
> https://xcap.ae.com/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX9@irock.com/resource-li
> st.xml HTTP/1.1' 401 0 141 - -
> REQUEST headers:
> If-None-Match: "02df545fb141ee66255d9afeef3e69e3"
> Host: xcap.ae.com
> Accept: */*
> Authorization: Basic
> c2lwOjkwMTI3MzIwMDlAaXJvY2suY29tOmIxNjdpbnV4
>
>
>
> The only config I put on the Snom phone was
>
> xcap_tbook_sync_interval!: 7200
> xcap_server_name!: xcap.ae.com
> xcap_server_port!: 443
> xcap_directory_auid!: xcap-root at irock.com/resource-lists
> xcap_dir_doc_name!: index
>
>
>
> Also here is the snom log that shows that the https:xcap.ae.com is
> being
> repeated for some reason
>
> [5] 23/12/2001 18:01:40: XCAPclient: server did not provide an etag
> [5] 23/12/2001 18:01:40: XCAPclient: Retrieving directory failed with
> error-code 404 and message:
> XCAP root not found for URI:
> https://xcap.ae.comhttps://xcap.ae.com:443/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
> [5] 23/12/2001 18:21:42: XCAPclient: server did not provide an etag
> [5] 23/12/2001 18:21:42: XCAPclient: Retrieving directory failed with
> error-code 404 and message:
> XCAP root not found for URI:
> https://xcap.ae.comhttps://xcap.ae.com:443/xcap-root@irock.com/resource-lists/users/sip:9XX2XX2XX0@irock.com/index
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenXCAP-and-Presence-with-SNOM-version-8-2-29-tp5080886p5101671.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100526/2fd0825c/attachment.htm
More information about the Users
mailing list