Hi, All, Happy new year to all the team here. Please help me to figure out what is going wrong with my openxcap. Thanks in advance. I've built up openxcap in debian according to the installation guide and the it works as followings info from error.log. ---------------------------------------------------------------------------- --------------------------------------------------- 2009-01-02 02:56:26-0500 [-] Starting OpenXCAP 1.0.6 2009-01-02 02:56:37-0500 [-] Supported Root URIs: http://192.168.10.10/xcap-root 2009-01-02 02:56:39-0500 [-] Certificate file 'tls/server.crt' could not be loaded: File 'tls/server.crt' does not exist 2009-01-02 02:56:39-0500 [-] Private key file 'tls/server.key' could not be loaded: File 'tls/server.key' does not exist 2009-01-02 02:56:39-0500 [-] Trusted peers: 192.168.10.0/24, 127.0.0.1 2009-01-02 02:56:39-0500 [-] xcap.server.HTTPFactory starting on 80 ---------------------------------------------------------------------------- ---------------------------------------------------- The openxcap server is configured to domain 192.168.10.10 ( local server static IP address ). I also created a test account [email protected] with pwd 123 by python add-openxcap-user.py in scripts. While when I tried the python-xcapclient to put a document to the openxcap server, I always encountered "401 Unauthorized" for following details - ---------------------------------------------------------------------------- ------------------------------------------------------- xcap:/opt/python-xcaplib/examples# xcapclient -i pres-rules.xml put put http://192.168.10.10/xcap-root/pres-rules/users/sip:[email protected]/inde x 401 Unauthorized content-type: text/html content-length: 141 <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1><p> You are not authorized to access this resource.</p></body></html> ---------------------------------------------------------------------------- ------------------------------------------------------- Please refer the the access.log and it seems something related my domain settings. ---------------------------------------------------------------------------- ------------------------------------------------------- 2009-01-01 08:41:08-0500 [-] 192.168.10.10 'PUT /xcap-root/pres-rules/users/sip:[email protected]/index HTTP/1.1' 401 0 141 'python-xcaplib/1.0.8' - REQUEST headers: Accept-Encoding: identity User-Agent: python-xcaplib/1.0.8 Host: 192.168.10.10 Content-Type: application/x-www-form-urlencoded Authorization: Basic YWxpY2U6MTIz RESPONSE headers: Date: Thu, 01 Jan 2009 13:41:08 GMT Content-Type: text/html WWW-Authenticate: basic realm="192.168.10.10" Server: OpenXCAP/1.0.6 ---------------------------------------------------------------------------- ------------------------------------------------------- Regards Jun
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
