[OpenSIPS-Users] OpenXCAP and Presence with SNOM version 8.2.29

osiris123d duane.larson at gmail.com
Thu May 27 16:14:05 CEST 2010


Saul/Adrian,

I did paste the URL into a browser and everything worked out fine. When I  
get home I will do more testing with the Snom phone because I have no clue  
why I am seeing that double url.

Also here is my OpenXCAP config

;
; Configuration file for OpenXCAP
;
; Copyright (c) 2007-2009 AG Projects
; http://ag-projects.com

[Server]

; IP address and port to listen for requests
; 0.0.0.0 means any address of this host
address = 17X.XXX.XXX.XXX
port = 443
;port = 80
; The XCAP Root URI; must not contain any port number. If the scheme is
; https, then the server will listen for requests in TLS mode.

; This is a comma/space separated list of XCAP root URIs. The first is the
; primary XCAP root URI, while the others (if specified) are aliases.
; The primary root URI is used when generating xcap-diff

root = https://xcap.ae.com/xcap-root
;root = http://xcap.ae.com/xcap-root
; The backend to be used for storage and authentication. Current supported
; values are Database and OpenSIPS. OpenSIPS backend inherits all the  
settings
; from the Database backend but performs extra actions related to the
; integration with OpenSIPS for which it read the settings from [OpenSIPS]
; section

backend = OpenSIPS

; Validate XCAP documents against XML schemas
document_validation = Yes


[Logging]
; directory where to put log files, default is /var/log/openxcap
; if empty, like in the following line, logs will be printed to stdout
directory= /var/log/openxcap

; The following log_* parameters control what information is logged for
; which errors. Their format is comma-separated list of HTTP error codes
; that should enable the feature currently implemented: log_request_headers,
; log_response_body, log_stacktrace

; Some examples:

; * log stack trace for 500 Internal Error only (default)
log_stacktrace=500

; * log stack trace (if available) for any error
log_stacktrace=any

; * log responses sent to the client for 400 and 409 errors (default is 500)
log_response_body=400,409

; * log headers sent by the client for 401 errors (default is 500)
log_request_headers=401


[Authentication]

; The HTTP authentication type, this can be either 'basic' or 'digest'.
; If you're using TLS, it's better to choose 'basic' because the data is
; encrypted anyway.
type = basic

; Specify if the passwords are stored as plain text - Yes
; or in a hashed format MD5('username:domain:password') - No
cleartext_passwords = No

; The default authentication realm
default_realm = ae.com

; A list of trusted peers from where XCAP requests are accepted without HTTP
; authentication eg trusted_peers = 10.0.0.0/24, 192.168.0.1
trusted_peers = 66.XX.XXX.XXX, 127.0.0.1, 17X.XXX.XXX.XXX


[TLS]

; Location of X509 certificate and private key that identify this server.
; The path is relative to /etc/openxcap, or it can be given as an absolute
; path.

; Server X509 certificate
certificate = tls/openxcapserver.crt

; Server X509 private key
private_key = tls/openxcapserver.key


[Database]

; The database connection URI for the datase with subscriber accounts
authentication_db_uri = mysql://opensips:XXXXXXX@17X.XXX.XXX.XXX/opensips

; The database connection URI for the database that stores the XCAP  
documents
storage_db_uri = mysql://opensips:XXXXXXXXX@17X.XXX.XXX.XXX/opensips

; Authentication and storage tables
subscriber_table = subscriber
xcap_table = xcap


[OpenSIPS]

; The address and port of the xml-rpc management interface
xmlrpc_url = http://17X.XXX.XXX.XXX:8080

; Publish xcap-diff event via OpenSIPS management interface
enable_publish_xcapdiff = yes

On May 27, 2010 1:35am, "Saúl Ibarra Corretgé [via OpenSIPS (Open SIP  
Server)]" <ml-node+5107199-844237822-169958 at n2.nabble.com> wrote:




> Hi,



> On 27/5/10 4:21 AM, osiris123d wrote:


> >


> > I set up Snom to work off of port 80 and the ngrep capture of port 80  
> on the


> > openxcap server is


> >


> > ####


> > T 2010/05/26 20:28:39.863832 7X.XX.8.XX8:2108 -> 17X.XXX.XXX.XX4:80 [AP]


> > ....?...;........(m..J....................db...


> > ####


> >


> > And the snom log says


> > [1] 23/12/2001 18:01:08: webclient: request


> > xcap.ae.com:80https://xcap.ae.com:[hidden  
> email]/resource-lists/users/sip:[hidden email]/index


> > stopped due to no response from server


> > [5] 23/12/2001 18:01:08: XCAPclient: server did not provide an etag


> > [5] 23/12/2001 18:01:08: XCAPclient: Retrieving directory failed with


> > error-code 408 and message:


> >


> >


> > I am not able to get a clear ngrep capture but I can tell you for a fact


> > that on the client side I am not sending a doubled up url of


> > https://xcap.ae.comhttps://xcap.ae.com
> >



> Looks like the Snom uses SSL anyway.



> > I believe the first line in the openxcap access.log verifies this.


> >


> > 7X.XX.XX.XX8 'GET


> >  
> https://xcap.ae.com/xcap-root@.../resource-lists/users/sip:9XX27X2XX0@.../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()


> > --- ---


> > 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


> > 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.ae.com:443/xcap-root@.../resource-lists/users/sip:9XX27X2XX0@.../index
> >


> >


> > I am running the OpenXCAP 1.2.0


> >



> Can you do a quick test? Paste the URL on your browser and check the


> logs. I tested a similar URL myself and couldn't get that traceback.




> --


> Saúl Ibarra Corretgé


> AG Projects



> _______________________________________________


> Users mailing list


> [hidden email]


> http://lists.opensips.org/cgi-bin/mailman/listinfo/users










> View message @  
> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenXCAP-and-Presence-with-SNOM-version-8-2-29-tp5080886p5107199.html




> To unsubscribe from Re: OpenXCAP and Presence with SNOM version 8.2.29,  
> click here.









-- 
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenXCAP-and-Presence-with-SNOM-version-8-2-29-tp5080886p5108810.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100527/765b2b88/attachment-0001.htm 


More information about the Users mailing list