[OpenSIPS-Users] OpenXCAP not starting

willy.to at niji.fr willy.to at niji.fr
Thu Mar 5 15:36:02 CET 2009


Hi all,

I am using an OpenIMS core with a presence server (OpenSER) and OpenXCAP. However I didn't manage to configure OpenXCAP properly . When I try to start OpenXCAP server:

 

# sudo /etc/init.d/openxcap start

Starting OpenXCAP server: openxcap .

 

Even if it says that the server start, nothing happens (no openxcap.pid created). And when I try to connect with a XCAP client, it's not working. I checked the log files in /var/log/openxcap/ directory. There is nothing except an empty file access.log.

I think that OpenXCAP doesn't start, but I can't figure out why.

Will you please suggest me how to fix this issue ?

 

Thanks for your help.

 

 

 

Here are the conf file of the presence server and the openxcap

 

**********************************************************************************************************

Openser.cfg

 

#set module path

mpath="/usr/lib/openser/modules/"

loadmodule "mysql.so"

loadmodule "sl.so"

loadmodule "tm.so"

loadmodule "rr.so"

loadmodule "presence.so"

loadmodule "presence_xml.so"

loadmodule "maxfwd.so"

loadmodule "usrloc.so"

loadmodule "registrar.so"

loadmodule "textops.so"

loadmodule "mi_fifo.so"

loadmodule "mi_xmlrpc.so"

# Uncomment this if you want digest authentication

# mysql.so must be loaded !

#loadmodule "auth.so"

#loadmodule "auth_db.so"

# ----------------- setting module-specific parameters ---------------

# -- mi_fifo params --

modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")

modparam("mi_fifo", "reply_dir", "/tmp/")

modparam("mi_fifo", "reply_indent", "/tmp/openser_reply")

# -- usrloc params --

modparam("usrloc", "db_mode",   0)

# Uncomment this if you want to use SQL database 

# for persistent storage and comment the previous line

#modparam("usrloc", "db_mode", 2)

# -- auth params --

# Uncomment if you are using auth module

#

#modparam("auth_db", "calculate_ha1", yes)

#

# If you set "calculate_ha1" parameter to yes (which true in this config), 

# uncomment also the following parameter)

#

#modparam("auth_db", "password_column", "password")

 

# -- rr params --

# add value to ;lr param to make some broken UAs happy

modparam("rr", "enable_full_lr", 1)

# -- mi_xmlrpc params --

# be careful to set the same port in OpenXCAP configuration file

modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log")

modparam("mi_xmlrpc","port", 9090)

 

# -- presence params --

modparam("presence", "db_url", "mysql://openser:openserrw@localhost/openser")

modparam("presence", "presentity_table", "presentity")

modparam("presence", "active_watchers_table", "active_watchers")

modparam("presence", "watchers_table", "watchers")

modparam("presence", "clean_period", 100)

modparam("presence", "to_tag_pref", 'a')

modparam("presence", "expires_offset", 10)

modparam("presence", "max_expires", 3600)

modparam("presence", "server_address", "sip:10.0.0.4:5065")

modparam("presence", "fallback2db", 1)

# -- xcap params --

modparam("presence_xml", "db_url", "mysql://openser:openserrw@localhost/openser")

modparam("presence_xml", "xcap_table", "xcap")

modparam("presence_xml", "force_active", 0)

modparam("presence_xml", "pidf_manipulation", 1)

modparam("presence_xml", "integrated_xcap_server", 1)

 

************************************************************************************************************

************************************************************************************************************

Config.ini

 

[Server]

address = 0.0.0.0

port = 443

root = http://xcap.open-ims.test/xcap-root

backend = OpenSER

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=

 

; 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 none)

;log_response_body=400,409

 

; * log headers sent by the client for 401 errors (default is none)

;log_request_headers=401

 

[Authentication]

type = basic

cleartext_passwords = Yes

default_realm = open-ims.test

trusted_peers = 10.0.0.0/24, 192.168.0.0/24

 

[OpenSER]

authentication_db_uri = mysql://openser:openserrw@localhost/database

storage_db_uri = mysql://openser:openserrw@localhost/database

subscriber_table = subscriber

xcap_table = xcap

xmlrpc_url = http://presence.open-ims.test:9090

; enable_publish_xcapdiff = yes

 

*************************************************************************************************************

________________________________

  <http://www.niji.fr/> 
Willy TO, Ingénieur d'études n Mobile : 06 17 46 94 47 
16, rue Jean-Jacques Rousseau - 92 136 Issy-les-Moulineaux n Tél : +33 1 58 88 30 72 n Fax : +33 1 46 45 13 93
8, square du chêne Germain - 35 510 Cesson-Sévigné n Tél : +33 2 99 32 02 84 n Fax : +33 2 99 32 03 89
679, avenue de la République - 59 000 Lille n Tél : +33 1 58 88 30 72 n Fax : +33 1 46 45 13 93
www.niji.fr <http://www.niji.fr>  

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090305/836858eb/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1653 bytes
Desc: image001.gif
Url : http://lists.opensips.org/pipermail/users/attachments/20090305/836858eb/attachment-0001.gif 


More information about the Users mailing list