I'm new to openxcap server. I installed openxcap as shown in <a href="http://openxcap.org">openxcap.org</a> website.I'm having hard time configuring it and making it work with a IMS/Presence Client.<br><br>I want to configure openxcap with http, not https.<br>
<br>Here is my openxcap config.ini file<br><br><br>[Server]<br>address = 63.148.166.215<br>port = 9080<br><br>root = <a href="http://sips01.smithmicro.com:9080/xcap-root">http://sips01.smithmicro.com:9080/xcap-root</a><br>
<br>backend = OpenSIPS<br><br>document_validation = Yes<br><br><br>[Authentication]<br><br>type = basic<br>cleartext_passwords = Yes<br><br>default_realm = 63.148.166.215<br><br>trusted_peers =<br><br><br>[TLS]<br><br>certificate = ./tls/openxcap.crt<br>
private_key = ./tls/openxcap.key<br><br>[Database]<br>authentication_db_uri = mysql://opensips:opensipsrw@localhost/opensips<br>storage_db_uri = mysql://opensips:opensipsrw@localhost/opensips<br><br>subscriber_table = subscriber<br>
xcap_table = xcap<br><br>[OpenSIPS]<br><br>; The address and port of the xml-rpc management interface<br>xmlrpc_url = <a href="http://sips01.smithmicro.com:8080">http://sips01.smithmicro.com:8080</a><br><br>; Publish xcap-diff event via OpenSIPS management interface<br>
; enable_publish_xcapdiff = yes<br>------------------------------------------------------------------------------------------------------------------<br><br>> sudo openxcap --no-fork<br>Starting OpenXCAP 1.1.2<br>xcap.server.HTTPFactory starting on 9080<br>
8 xcap documents in the database<br>..<br><br>openxcap starts fine and spits out error 404, even for PUT operations.<br><br>Here is my OPenSIPS config. I'm not using intergrated xcap, just to make the initial xcap work as dis-joint with opensips. Still It does not work<br>
<br>Please help me find the error<br><br><br>debug=3<br>log_stderror=no<br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br><br>/* uncomment the following lines to enable debugging */<br>#debug=6<br>fork=no<br>log_stderror=yes<br>
<br>/* uncomment the next line to disable TCP (default on) */<br>#disable_tcp=yes<br><br>/* uncomment the next line to enable the auto temporary blacklisting of<br> not available destinations (default disabled) */<br>#disable_dns_blacklist=no<br>
<br>/* uncomment the next line to enable IPv6 lookup after IPv4 dns<br> lookup failures (default disabled) */<br>#dns_try_ipv6=yes<br><br>/* uncomment the next line to disable the auto discovery of local aliases<br> based on revers DNS on IPs (default on) */<br>
#auto_aliases=no<br><br>/* uncomment the following lines to enable TLS support (default off) */<br>#disable_tls = no<br>#listen = tls:your_IP:5061<br>#tls_verify_server = 1<br>#tls_verify_client = 1<br>#tls_require_client_certificate = 0<br>
#tls_method = TLSv1<br>#tls_certificate = "/usr/local/etc/opensips/tls/user/user-cert.pem"<br>#tls_private_key = "/usr/local/etc/opensips/tls/user/user-privkey.pem"<br>#tls_ca_list = "/usr/local/etc/opensips/tls/user/user-calist.pem"<br>
<br><br>port=5060<br><br>/* uncomment and configure the following line if you want opensips to<br> bind on a specific interface/port/proto (default bind on all available) */<br>listen=udp:<a href="http://63.148.166.215:5060">63.148.166.215:5060</a><br>
<br>####### Modules Section ########<br><br>#set module path<br>mpath="/usr/local/lib/opensips/modules/"<br><br>/* uncomment next line for MySQL DB support */<br>loadmodule "db_mysql.so"<br>loadmodule "signaling.so"<br>
loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>
loadmodule "mi_fifo.so"<br>loadmodule "uri_db.so"<br>loadmodule "uri.so"<br>loadmodule "xlog.so"<br>loadmodule "acc.so"<br>#loadmodule "mediaproxy.so"<br>#loadmodule "nathelper.so"<br>
#loadmodule "mi_xmlrpc.so"<br><br>#modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log")<br>#modparam("mi_xmlrpc", "port", 8080)<br><br>/* uncomment next lines for MySQL based authentication support<br>
NOTE: a DB (like db_mysql) module must be also loaded */<br>loadmodule "auth.so"<br>loadmodule "auth_db.so"<br>/* uncomment next line for aliases support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>
loadmodule "alias_db.so"<br>/* uncomment next line for multi-domain support<br> NOTE: a DB (like db_mysql) module must be also loaded<br> NOTE: be sure and enable multi-domain support in all used modules<br>
(see "multi-module params" section ) */<br>#loadmodule "domain.so"<br>/* uncomment the next two lines for presence server support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>
loadmodule "presence.so"<br>loadmodule "presence_xml.so"<br>loadmodule "presence_mwi.so"<br>loadmodule "pua.so"<br>loadmodule "pua_mi.so"<br>#loadmodule "rls.so"<br>
<br># ----------------- setting module-specific parameters ---------------<br><br><br># ----- mi_fifo params -----<br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br><br><br># ----- rr params -----<br>
# add value to ;lr param to cope with most of the UAs<br>modparam("rr", "enable_full_lr", 1)<br># do not append from tag to the RR (no need for this script)<br>modparam("rr", "append_fromtag", 0)<br>
<br><br># ----- registrar params -----<br>modparam("registrar", "method_filtering", 1)<br>/* uncomment the next line to disable parallel forking via location */<br># modparam("registrar", "append_branches", 0)<br>
/* uncomment the next line not to allow more than 10 contacts per AOR */<br>#modparam("registrar", "max_contacts", 10)<br><br><br># ----- usrloc params -----<br>modparam("usrloc", "db_mode", 0)<br>
/* uncomment the following lines if you want to enable DB persistency<br> for location entries */<br>modparam("usrloc", "db_mode", 2)<br>modparam("usrloc", "db_url",<br> "mysql://opensips:opensipsrw@localhost/opensips")<br>
<br><br># ----- uri_db params -----<br>/* by default we disable the DB support in the module as we do not need it<br> in this configuration */<br>modparam("uri_db", "use_uri_table", 0)<br>modparam("uri_db", "db_url", "")<br>
<br><br># ----- acc params -----<br>/* what sepcial events should be accounted ? */<br>modparam("acc", "early_media", 1)<br>modparam("acc", "report_ack", 1)<br>modparam("acc", "report_cancels", 1)<br>
/* by default ww do not adjust the direct of the sequential requests.<br> if you enable this parameter, be sure the enable "append_fromtag"<br> in "rr" module */<br>modparam("acc", "detect_direction", 0)<br>
/* account triggers (flags) */<br>modparam("acc", "failed_transaction_flag", 3)<br>modparam("acc", "log_flag", 1)<br>modparam("acc", "log_missed_flag", 2)<br>/* uncomment the following lines to enable DB accounting also */<br>
modparam("acc", "db_flag", 1)<br>modparam("acc", "db_missed_flag", 2)<br><br><br># ----- auth_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br>
authentication */<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "password_column", "password")<br>modparam("auth_db", "db_url",<br>
"mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("auth_db", "load_credentials", "")<br><br><br># ----- alias_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br>
aliases */<br>modparam("alias_db", "db_url",<br> "mysql://opensips:opensipsrw@localhost/opensips")<br><br><br># ----- domain params -----<br>/* uncomment the following lines to enable multi-domain detection<br>
support */<br>#modparam("domain", "db_url",<br># "mysql://opensips:opensipsrw@localhost/opensips")<br>#modparam("domain", "db_mode", 1) # Use caching<br><br><br>
# ----- multi-module params -----<br>/* uncomment the following line if you want to enable multi-domain support<br> in the modules (dafault off) */<br>#modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)<br>
<br># ----- nat traversal -----<br>#modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")<br><br># ----- presence params -----<br>/* uncomment the following lines if you want to enable presence */<br>
modparam("presence|presence_xml", "db_url",<br> "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("presence", "server_address", "sip:<a href="http://63.148.166.215:5060">63.148.166.215:5060</a>")<br>
#modparam("presence", "fallback2db", 1)<br>modparam("presence", "clean_period", 30)<br><br># -- xcap params --<br>modparam("presence_xml", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>
modparam("presence_xml", "force_active", 1)<br>modparam("presence_xml", "pidf_manipulation", 1)<br>#modparam("presence_xml", "integrated_xcap_server", 1)<br><br>
<br>####### Routing Logic ########<br><br><br><br><br><br><br>