SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tamdthOffline



Joined: Mar 31, 2008
Posts: 8

Status: Offline
Posted: Mar 31, 2008 - 03:40 PM Reply with quote Back to top
Does anybody know about Xcap ? Is it interesting ? you are very kind if you tell me any experience about this one. Thank you.
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1424
Location: Leeds UK
Status: Offline
Posted: Mar 31, 2008 - 03:47 PM Reply with quote Back to top
It is indeed interesting. What do you want to know about it? For those that don't know, XCAP is the XML configuration access protocol, and is commonly used in SIP/SIMPLE-based voip systems to manipulate presence information. In essence, it maps XML document trees to HTTP URI's.
View user's profile Send private message Yahoo Messenger
tamdthOffline



Joined: Mar 31, 2008
Posts: 8

Status: Offline
Posted: Apr 29, 2008 - 09:36 AM Reply with quote Back to top
Thank you x-console for your reply.

I'm trying to install and test how openxcap (http://openxcap.org/) in my localhost.

1.
In this image [img] http://openxcap.org/chrome/site/SIPSIMPLE-concept.png [/img]
could you please explain the role of Openser between publisher and subcriber ?

2.
I've install openxcap successful, so how can I test it ?

My openxcap config.ini:
Code:

;
; Configuration file for OpenXCAP
;

[Server]

; IP address and port to listen for requests
; 0.0.0.0 means any address of this host
address = 127.0.0.1
port = 8000
; The XCAP Root URI; must not contain any port number. If it has the 'https' scheme,
; the server will listen for requests in TLS mode.
;root = http://xcap.example.com/
root = http://localhost:8000/xcap-root
; The backend to be used for storage and authentication. Current supported
; values are Database and OpenSER.
backend = Database
; Validate XCAP documents against XML schemas, default is Yes
document_validation = Yes

[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 = Yes
; The default authentication realm
;default_realm = example.com
default_realm = open-ims.test
; A list of trusted peers from where XCAP requests are accepted without HTTP authentication
; e.g. trusted_peers = 10.0.0.0/24, 192.168.0.1
trusted_peers =

[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/server.crt
; Server X509 private key
private_key = tls/server.key

[Database]

; Configuration settings for Database backend, active if this backend was selected
; in the [Server] section
; The database connection URI for the datase with subscriber accounts
authentication_db_uri = mysql://openser:openserrw@localhost:3306/openser
; The database connection URI for the database that stores the XCAP documents
storage_db_uri = mysql://openser:openserrw@localhost:3306/openser
; Authentication and storage tables
subscriber_table = subscriber
xcap_table = xcap

[OpenSER]

; Configuration settings for OpenSER backend, active if this backend was selected
; in the [Server] section
; The database connection URI for the datase with subscriber accounts
authentication_db_uri = mysql://openser:openserrw@localhost:3306/openser
; The database connection URI for the database that stores the XCAP documents
storage_db_uri = mysql://openser:openserrw@localhost:3306/openser
; Authentication and storage tables
subscriber_table = subscriber
xcap_table = xcap_xml
; The address and port where the XMLRPC Management Interface of OpenSER is listening
;xmlrpc_url = http://localhost:8080
xmlrpc_url = http://localhost:8000

3.
Openser is a client of Openxcap but how do I test if my openser and openxcap work well together.

openser.cfg

Code:

#
# $Id: openser.cfg 3376 2007-12-14 10:27:26Z henningw $
#
# OpenSER basic configuration script
#     by Anca Vamanu <anca@voice-system.ro>
#
# Please refer to the Core CookBook at http://www.openser.org/dokuwiki/doku.php
# for a explanation of possible statements, functions and parameters.
#


####### Global Parameters #########

debug=9
log_stderror=yes
log_facility=LOG_LOCAL0

fork=yes
children=4

/* uncomment the following lines to enable debugging */
#debug=6
#fork=no
#log_stderror=yes

/* uncomment the next line to disable TCP (default on) */
#disable_tcp=yes

/* uncomment the next line to enable the auto temporary blacklisting of
   not available destinations (default disabled) */
#disable_dns_blacklist=no

/* uncomment the next line to enable IPv6 lookup after IPv4 dns
   lookup failures (default disabled) */
#dns_try_ipv6=yes

/* uncomment the next line to disable the auto discovery of local aliases
   based on revers DNS on IPs (default on) */
#auto_aliases=no

/* uncomment the following lines to enable TLS support  (default off) */
#disable_tls = no
#listen = tls:your_IP:5061
#tls_verify_server = 1
#tls_verify_client = 1
#tls_require_client_certificate = 0
#tls_method = TLSv1
#tls_certificate = "/etc/openser/tls/user/user-cert.pem"
#tls_private_key = "/etc/openser/tls/user/user-privkey.pem"
#tls_ca_list = "/etc/openser/tls/user/user-calist.pem"


port=5060

/* uncomment and configure the following line if you want openser to
   bind on a specific interface/port/proto (default bind on all available) */
listen=udp:127.0.0.1:5060


####### Modules Section ########

#set module path
mpath="/usr/lib/openser/modules/"

/* uncomment next line for MySQL DB support */
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "mi_xmlrpc.so"
loadmodule "uri_db.so"
loadmodule "uri.so"
loadmodule "xlog.so"
loadmodule "acc.so"

modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log")
modparam("mi_xmlrpc", "port", 8080)
/* uncomment next lines for MySQL based authentication support
   NOTE: a DB (like mysql) module must be also loaded */
loadmodule "auth.so"
loadmodule "auth_db.so"
/* uncomment next line for aliases support
   NOTE: a DB (like mysql) module must be also loaded */
#loadmodule "alias_db.so"

/* uncomment next line for multi-domain support
   NOTE: a DB (like mysql) module must be also loaded
   NOTE: be sure and enable multi-domain support in all used modules
         (see "multi-module params" section ) */
#loadmodule "domain.so"
/* uncomment the next two lines for presence server support
   NOTE: a DB (like mysql) module must be also loaded */
loadmodule "presence.so"
loadmodule "presence_xml.so"


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


# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")


# ----- rr params -----
# add value to ;lr param to cope with most of the UAs
modparam("rr", "enable_full_lr", 1)
# do not append from tag to the RR (no need for this script)
modparam("rr", "append_fromtag", 0)


# ----- rr params -----
modparam("registrar", "method_filtering", 1)
/* uncomment the next line to disable parallel forking via location */
# modparam("registrar", "append_branches", 0)
/* uncomment the next line not to allow more than 10 contacts per AOR */
#modparam("registrar", "max_contacts", 10)


# ----- uri_db params -----
/* by default we disable the DB support in the module as we do not need it
   in this configuration */
modparam("uri_db", "use_uri_table", 0)
modparam("uri_db", "db_url", "")


# ----- acc params -----
/* what sepcial events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
   if you enable this parameter, be sure the enable "append_fromtag"
   in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "failed_transaction_flag", 3)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 2)
/* uncomment the following lines to enable DB accounting also */
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)


# ----- usrloc params -----
#modparam("usrloc", "db_mode",   0)
/* uncomment the following lines if you want to enable DB persistency
   for location entries */
modparam("usrloc", "db_mode",   2)
modparam("usrloc", "db_url",
   "mysql://openser:openserrw@127.0.0.1/openser")


# ----- auth_db params -----
/* uncomment the following lines if you want to enable the DB based
   authentication */
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "db_url",
   "mysql://openser:openserrw@127.0.0.1/openser")
modparam("auth_db", "load_credentials", "")


# ----- alias_db params -----
/* uncomment the following lines if you want to enable the DB based
   aliases */
#modparam("alias_db", "db_url",
#   "mysql://openser:openserrw@192.168.1.3/openser_1_3")


# ----- domain params -----
/* uncomment the following lines to enable multi-domain detection
   support */
#modparam("domain", "db_url",
#   "mysql://openser:openserrw@192.168.1.3/openser_1_3")
#modparam("domain", "db_mode", 1)   # Use caching


# ----- multi-module params -----
/* uncomment the following line if you want to enable multi-domain support
   in the modules (dafault off) */
#modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)


# ----- presence params -----
/* uncomment the following lines if you want to enable presence */
modparam("presence|presence_xml", "db_url",
   "mysql://openser:openserrw@127.0.0.1:3306/openser")

modparam("presence_xml", "force_active", 1)
modparam("presence", "server_address", "sip:127.0.0.1:5060")

# -- xcap params --
modparam("presence_xml", "db_url", "mysql://openser:openserrw@127.0.0.1:3306/openser")
modparam("presence_xml", "force_active", 0)

modparam("presence_xml", "xcap_table", "xcap")
modparam("presence_xml", "pidf_manipulation", 1)
modparam("presence_xml", "integrated_xcap_server", 1)

# -- permissions params --
#modparam("permissions", "db_url", "mysql://openser:password@db/openser")
####### Routing Logic ########



3.
when I run /etc/init.d/openser start
I always got this mesage:
Code:

Apr 29 10:15:45 [26607] DBG:core:shm_mem_destroy:
Apr 29 10:15:45 [26607] DBG:core:shm_mem_destroy: destroying the shared memory lock
Apr 29 10:15:45 [26607] DBG:core:handle_sigs: terminating due to SIGCHLD


and when I try to test:
Code:

root@dthtam:/home/dthtam# /etc/init.d/openser status
Status of openser: openser is not running.
root@dthtam:/home/dthtam#

Could you fix the error for me ?

4.
Publisher and Subcriber are also Openxcap & Openser clients, do I have to install those clients on my computer to test openser and openxcap ? And could you please tell me which kind of software I should use to illustrat those clients ?

Thank million[/code]
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1424
Location: Leeds UK
Status: Offline
Posted: Apr 29, 2008 - 11:34 AM Reply with quote Back to top
1. OpenSER in this topology is the default proxy and sip registrar for alice and bob's phone.

2. get two phones that support xcap auth (e.g. eyebeam), and configure them for your network topology. configure your openser to use xcap

3 . I cant tell you what is wrong with your openser instance from the messages you've posted. set fork=no and look a the output for lines denoting an error.

4. erm, publish and subscribe are sip request methods issued by the sip clients (phones).
View user's profile Send private message Yahoo Messenger
tamdthOffline



Joined: Mar 31, 2008
Posts: 8

Status: Offline
Posted: May 02, 2008 - 08:42 AM Reply with quote Back to top
x-console :
1. OpenSER in this topology is the default proxy and sip registrar for alice and bob's phone.

2. get two phones that support xcap auth (e.g. eyebeam), and configure them for your network topology. configure your openser to use xcap

3 . I cant tell you what is wrong with your openser instance from the messages you've posted. set fork=no and look a the output for lines denoting an error.

4. erm, publish and subscribe are sip request methods issued by the sip clients (phones).


Thank you. Now I can start openser now, I just do sth like these:

Code:

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


and then it works. Hopefully it is ok when I run clients. However, do you think I should install 2 kind of clients, ie. X-lite and Eyebeam/Bria. But eyebeam and Bria is not free, do you have any comment ?
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1424
Location: Leeds UK
Status: Offline
Posted: May 02, 2008 - 10:53 AM Reply with quote Back to top
x-lite does not support xcap, if i recall correctly. There are not many softphone's out there that support xcap as yet i'm afraid.. certainly not in the open source / free software space anyways.
View user's profile Send private message Yahoo Messenger
tamdthOffline



Joined: Mar 31, 2008
Posts: 8

Status: Offline
Posted: May 02, 2008 - 02:11 PM Reply with quote Back to top
x-console :
x-lite does not support xcap, if i recall correctly. There are not many softphone's out there that support xcap as yet i'm afraid.. certainly not in the open source / free software space anyways.

you are right, I search in the internet, they are said that x-lit didnt' support xcap yet.

How about these:

http://www.fokus.fraunhofer.de/ims/comp ... hp?lang=de
http://uctimsclient.berlios.de/
Do you think is it ok ?
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1424
Location: Leeds UK
Status: Offline
Posted: May 03, 2008 - 08:37 AM Reply with quote Back to top
no idea.. you are best just trying them and finding out. look at the openxcap site for suggestions. The one thing about eyebeam is that it is the closest thing to an industry standard when it comes to xcap and SIp softphones. Which means you can be sure that if it doesnt work, its your configuration, and not the softphone.
View user's profile Send private message Yahoo Messenger
tamdthOffline



Joined: Mar 31, 2008
Posts: 8

Status: Offline
Posted: May 06, 2008 - 11:28 PM Reply with quote Back to top
x-console :
no idea.. you are best just trying them and finding out. look at the openxcap site for suggestions. The one thing about eyebeam is that it is the closest thing to an industry standard when it comes to xcap and SIp softphones. Which means you can be sure that if it doesnt work, its your configuration, and not the softphone.


Could you please tell me how can I test openser, openxcap, clients working together or to check how they are interconnected.
THank you
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1424
Location: Leeds UK
Status: Offline
Posted: May 07, 2008 - 12:43 AM Reply with quote Back to top
yes. just set them up correctly, and take traces of SIP and http to make sure all is working as it should be.
View user's profile Send private message Yahoo Messenger
istvanOffline



Joined: Jul 20, 2008
Posts: 2

Status: Offline
Posted: Jul 29, 2008 - 01:53 PM Reply with quote Back to top
hello

mizuphone from http://www.mizutech.hu has xcap support, but it has FTP, HTTP and WebDav support as well.

I recommend you to use simple FTP or HTTP storage whenever you would like to simply store your settings and contacts on a server, and use xcap only for more advanced function (long term presence settings, etc). but in this case, the sip server you use must have support for xcap. i never seen a commercial sipserver with full xcap support untill now.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.