My testbed is built on Ubuntu 7.04 and OpenIMScore, with openser(including mysql, presence, presence_xml and mi_xmlrpc module) and openxcap. Each component seems working fine according to syslog. But I am wondering how can I exactly know they integrate well?
I was running this testbed without openxcap to test presence using the following openser config(config 1). Notify request from openser is ok. However, the notify request disappears after shifting to integration of openser and openxcap(see config 2), and subscription state is 'pending' rather than 'active' as seen when testing without openxcap.
CONFIG 1: ============================= loadmodule "presence.so" loadmodule "presence_xml.so" ... # -- presence params -- modparam("presence", "db_url", "mysql://openser:openserrw@localhost:3306/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", 'pres') #modparam("presence", "lock_set_size", 8) modparam("presence", "expires_offset", 10) modparam("presence", "max_expires", 3600) modparam("presence", "server_address", "sip:148.88.xxx.xxx:5065") ... # -- presence_xml params -- modparam("presence_xml", "db_url", "mysql://openser:openserrw@localhost:3306/openser") modparam("presence_xml", "xcap_table", "xcap") modparam("presence_xml", "force_active", 1) =============================
CONFIG 2: ============================= loadmodule "presence.so" loadmodule "presence_xml.so"
loadmodule "mi_xmlrpc.so"
modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log") modparam("mi_xmlrpc", "port", 8888)
# -- presence params -- modparam("presence", "db_url", "mysql://openser:openserrw@localhost:3306/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", 'pres') #modparam("presence", "lock_set_size", 8) modparam("presence", "expires_offset", 10) modparam("presence", "max_expires", 3600) modparam("presence", "server_address", "sip:148.88.xxx.xxx:5065")
# -- presence_xml params -- modparam("presence_xml", "db_url", "mysql://openser:openserrw@localhost:3306/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) ============================== OPENXCAP config.ini: address=0.0.0.0 port=8000 root=http://localhost/xcap-root backend=Database document_valication=Yes type=basic cleartest_passwords=Yes default_realm=open-ims.test trusted_peers= authentication_db_uri=mysql://openser:openserrw@localhost:3306/openser storage_db_uri=mysql://openser:openserrw@localhost:3306/openser subscriber_table=subscriber xcap_table=xcap authentication_db_uri=mysql://openser:openserrw@localhost:3306/openser
storage_db_uri=mysql://openser:openserrw@localhost:3306/openser xcap_table=xcap xmlrpc_url=http://localhost:8000 ==============================
Anothter thing about apache, I have not create any virtual host just localhost points to /var/www/ (see the value of root in config.ini). According to the mechanism of openxcap, the subscribe request is sent as well as a HTTP GET. But I can't find anything about that http GET in both internal and external traces on port 4060,5060,6060,5065,8000,8888(no xml document in/var/www/xcap-root is created). Is this right? Or, do I need to redesign my sip client by adding a HTTP sending function when subscribing in order to test openxcap?
Thanks a billion!
Keivn,
_________________________________________________________________ 用 Live Search 搜尽天下资讯! http://www.live.com/?searchOnly=true